A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
IIF is sensitive to the data type of the expressions.
IIF(1=1, 5, 25) works, but IIF(1=1, "5", 25) would not work because "5" is a string, and 25 is an integer.
HTH,
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.