Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

IF Function in Formula Dialog Box (Report Builder 3.0)

$
0
0

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.



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>