Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (17.6k points)
If isnull(field1)

or isnull(field2) then

0

else

ToNumber((field1 / field2) * 100)

==========

how can i rewrite it in the Field Expression in SSRS? Please assist me

1 Answer

0 votes
by (47.2k points)

 In Reporting Services paginated reports, expressions are generally used to control content and report appearance. 

 IIF is a decision function that returns one of two values depending on whether the expression is true or not.

I hope this would help you:

=IIf(IsNothing(Fields!field1.Value)Or IsNothing(Fields!field2.Value) ,0,((Fields!field1.Value)/(Fields!field2.Value)*100))

Check out SSRS Certification Training  from Intellipaat to master the concepts of SQL Server Reporting Services

Related questions

0 votes
1 answer
asked Jan 31, 2020 in BI by Vaibhav Ameta (17.6k points)
0 votes
1 answer
asked Feb 6, 2020 in BI by Vaibhav Ameta (17.6k points)
0 votes
1 answer
asked Feb 27, 2020 in BI by Vaibhav Ameta (17.6k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 27, 2020 in BI by Vaibhav Ameta (17.6k points)

Browse Categories

...