You’re right, it doesn’t short circuit. That sucks.
You’ll have to do something like this:
= Iif(KgSold = 0, 0, Revenue) / Iif(KgSold = 0, 1, KgSold )
The switch function should also work.
More Related Contents:
- SSRS 2005 Set SimplePageHeaders on the report instead of the server?
- SSRS Conditional Formatting Switch or IIF
- The permissions granted to user ‘ are insufficient for performing this operation. (rsAccessDenied)”}
- Passing parameter via url to sql server reporting service
- SSRS multi-value parameter using a stored procedure
- Compare SQL Server Reporting Services to Crystal Reports [closed]
- SSRS 2008 R2 – SSRS 2012 – ReportViewer: Reports are blank in Safari and Chrome
- SSRS Expression Divide by Zero Error
- Reporting Services export to Excel with Multiple Worksheets
- When to use RDLC over RDL reports?
- Fast query runs slow in SSRS
- SSRS 2008 R2 – SSRS 2012 – ReportViewer: Reports in Safari/Chrome but works fine in Firefox/Internet Explorer 8… why?
- SSRS – How to build a simple multi-column report?
- SSRS – How to continue data to next column?
- SSRS distinct lookupset function
- How to combine aggregates within a group with aggregates across groups within SSRS
- Pivot a table in reporting services?
- Access Page number in report body In SSRS
- Performance difference between IIf() and If
- How to get rid of blank pages in PDF exported from SSRS
- Add alternating row color to SQL Server Reporting services report
- Sql PIVOT and string concatenation aggregate
- Why does the 2nd T-SQL query run much faster than the first when called by Reporting Services 2005 in a web-app
- divide by zero/null workaround in SSRS 2008 report
- Need help in calculation using two Datasets using Expression SSRS
- how to remove time from datetime
- SQL Reporting Services – Print Button not shown in Mozilla
- Optional multi-valued parameters in SSRS
- How to get total of top 10 sales in SSRS 2012
- Passing Credentials to Sql Report Server 2008