Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format empty matrix cells in SSRS

When I apply a 0.00% format to a cell while designing an SSRS report, then export to Excel, only cells containing values have this number format. Cells without data default to the "General" format.

Is there a way to format empty cells so that they have the 0.00%?

Thanks.

like image 598
Lala Avatar asked Dec 04 '25 17:12

Lala


2 Answers

You could try an expression like this in your cell:

=IIf(IsNothing(Fields!MyColumn.Value),0,Fields!MyColumn.Value)

If the field is empty then it puts 0, otherwise it uses the data.

like image 98
JeffB Avatar answered Dec 06 '25 07:12

JeffB


You can solve the referencing of Empty Cell values using the ReportItem expression.

A solution is posted in the article by darkdusky.

Use =ReportItems!textbox4.Value in the blank cells to make comparisons for cell values.

like image 36
ilorgat Avatar answered Dec 06 '25 07:12

ilorgat