Getting an iif and statement to work in SSRS - reporting-services

I have written the following statement but have not been able to get it to work. Can anyone help me?
=iif(Fields!Requirement_Description.Value="4. Transport Req. Mon PM" and Fields!Transport_Requirement_Y_N.Value=TRUE,"Yes","No")
Many thanks :)

=IFF((Fields!Requirement_Description.Value="4. Transport Req. Mon PM") AND (Fields!Transport_Requirement_Y_N.Value=TRUE), "Yes","No")

Related

Between 2 dates form Validation Access. I've tried many different things and nothing works

I'm having a hard time figuring out why my code isn't working with this front end form validation rule regarding a range of dates.
So far I've tried many different solutions stated below that have kept yielding me the same error. The data I've been inputting is 03/29/2021 and it's giving me an error when it should be in that range.
Does someone know why and how to go about fixing it? Thank you!
Between #1/1/2012# and Date()
Not IsNull([Date]) And Between #1/1/2012# And #1/1/2024#
Not IsNull([Date]) And Between #1/1/2012# And Date() (I would like to use this one the most to eliminate as much human error as possible)
Not IsNull([Date]) And Between #01/01/2012# And #01/01/2024#
Not IsNull([Date]) And Between #01/01/2012# And Date()
Not IsNull([Date]) And Between #01/01/2012# And >= Date()
This setting for the validation rule works:
Between #01/01/2012# And Date() And Not Is Null

Microsoft Report Builder 2016 Parameter of Start Date Issue

I am showing header in my report showing two parameters Start Date and End Date. Both parameters' type is Date/Time. While setting in the Number Format in placeholder settings I tried to print the Date Like 01-MAR-2020 to 31-MAR-2020 using =UCase(Format(Parameters!STARTDATE.Value, "dd-MMM-yyyy")) but this is showing FEB as EB, MAR as 3AR and MAY as 5AY. Please share the solution to fix it if any. Thanks
Try this:
=UCase(Format(Parameters!STARTDATE.Value, "dd-MM-yyyy"))

Date Criteria in Microsoft Access

I am trying to use MS-Access to fiter my dates. Example--> from yesterday till today
i am using the formula in criteria as below:
=Val(Year(Date()-1))*10000+Val(Month(Date()-1))*100+Val(Day(Date()-1))--this is for yesterdays date
its not working as its says Please chk the code and recompile. SOme how same formulaworks in another version(older version) of MS access.
Can you please help with this? is there any setting/Plugin we need to have?
Thanks in advance.
It is far easier to use DateAdd to get dates relative to another date:
=DateAdd("d",-1,Date())
Will give you yesterday's date:
Regards,

Unable to get the Query Results

i am a newbie to SQL. i am not able to figure out what is the solution to this question where i have to filter a query through date.
Please have a look at this image.
Please tell me Where am i doing it wrong.
thanks
There is a sentence appointing to what you are doing wrong. In this case, it is a typo: date is missing 0.
Your date should be 2015-10-01. You're missing a zero in the day portion.

can't get SSRS 2008 IIF statement with DatePart to work

I'm getting an error when I use the statement below. I'm using an IIF statement to get the correct week number. The week numbers are different for 2016 than other years so my old expression is returning one week number later than it should -- the old: =DatePart(DateInterval.WeekOfYear, Fields!REQ_DATE.value).
what I have written but am getting an error and I cannot figure out what the problem is:
=IIF(=DatePart(DateInterval.Year, Fields!REQ_DATE.Value) =
“2016”,=DatePart(DateInterval.WeekOfYear, Fields!REQ_DATE.Value) –
1,=DatePart(DateInterval.WeekOfYear, Fields!REQ_DATE.Value))
basically, if the year of the field REQ_DATE is 2016, I want the WeekOfYear for REQ_DATE - 1; else just the WeekOfYear.
can anyone help me? thank you!
You don't have to use = for every function you call in an expression, use the = only once at the beginning of the whole expression.
Try:
=IIF(DatePart(DateInterval.Year, Fields!REQ_DATE.Value) =
"2016",DatePart(DateInterval.WeekOfYear, Fields!REQ_DATE.Value) –
1,DatePart(DateInterval.WeekOfYear, Fields!REQ_DATE.Value))