Report Builder 3.0 SQL 2008 R2 - Using Report Model Query Designer (http://msdn.microsoft.com/en-us/library/dd220456(v=sql.105).aspx)
I'm trying to create a new field in Query Designer using IF function.
Field Name: CompletedBy
Formula:
IF(Work Item Assignment Reason = "Complete", Last Assigned To ID, "n/a")
It gives me the formula error:
The arguments to the following function are not valie: = (Equal to).
The Work Item Assignment Reason and Last Assigned to ID are field names.
I read this post but it doesn't really provide an example on how to use the IF function in the formula dialog box:
http://technet.microsoft.com/en-us/library/ee240820(v=sql.105).aspx
I found an example in an older version (Report Builder 1.0) so I'm not sure what I'm doing wrong:
http://technet.microsoft.com/en-us/library/aa337181(v=sql.100).aspx
I already tried IIF but it's not recognized. I'm trying to add the formula for a new field - it only has IF function listed (not IIF).
Any help is appreciated. Thank you.