Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
zahlenschubser
Helper IV
Helper IV

Show zero as blank in visual

I want to show zeros as blank in a visual, but I cannot use conditional text formatting to white because of the alternating colors in the rows.

The database is values in period columns, so I don't have a single column as a base for the visual.

 

And I can't replace zero with blank in the query editor because that will error the decimal formatted columns.

 

Any ideas?

grafik.png

1 ACCEPTED SOLUTION

@zahlenschubser,

 

You need to use "unpivot columns" in Power Query so you have one column for Date and one column for Amount.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
DataInsights
Super User
Super User

@zahlenschubser,

 

Try this measure:

 

Amount = 
VAR vAmount =
    SUM ( Table1[Amount] )
VAR vResult =
    IF ( vAmount = 0, BLANK (), vAmount )
RETURN
    vResult

 

In the Values field well, click the down arrow for Amount and select "Show items with no data":

 

DataInsights_0-1667480581658.png

 

DataInsights_1-1667480602304.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




That would mean that I need a measure for every separate column. Isn't there a better solution?

@zahlenschubser,

 

You need to use "unpivot columns" in Power Query so you have one column for Date and one column for Amount.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (1,277)