How do I translate a nested If() Excel formula to SSRS language?
I have not attempted yet, don't know how to even start. I'm a newbie in ssrs. the Excel formula is as follows:
=IF(A1>B1,"NO TEST",(IF(C1="4567","NEW","OLD")))
NOTE: A and B are datetime values, C is data type char(6) {either "OK" or "4567"}. B can be NULL.
What I want to accomplish is to show in a textbox in my report either "NO TEST", "NEW" or "OLD".
Similar like in Excel. 4567
for a number and "4567"
for a string:
=IFF(CDate(Fields!A1.Value) > IFF(IsDate(Fields!B1.Value), Fields!B1.Value, "01.01.1900"), "No Test", IFF(Fields!C1.Value = "4567", "New", "Old"))
If B1
can be null you have to filter it away or you check for Null
, because the CDate()
function will throw an error with Null
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.