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
vojtechsima
Super User
Super User

Zero values don't show (I used +0 trick)

Hello, guys,

I have this super weird, error. I have a matrix and if the value is blank, I wanna show zero, so I added to my measure + 0.

This trick always works but somehow it doesn't right now. It does work for card, not for matrix.

vojtechsima_0-1678143748151.png

 

Can someone advice how to fix it? I used completely fresh Power BI Instance and I don'T apply any formatting.


Here's the data:

document|document-page|keyword|Appearance|criticality|url|Page

Joy of cooking Joy of cooking - pg. 158 egg 2 1 http://www.google.com 158
Joy of cooking Joy of cooking - pg. 158 beef 1 2 http://www.google.com 158
Joy of cooking Joy of cooking - pg. 247 pasta 2 2 http://www.google.com 247
French cuisine French cuisine - pg. 17 egg 3 1 http://www.google.com 17
French cuisine French cuisine - pg. 55 egg 1 1 http://www.google.com 55
French cuisine French cuisine - pg. 107 baguette 4 2 http://www.google.com 107
Classic Italian Coooking Classic Italian Coooking - pg. 123 pesto 2 3 http://www.google.com 123
Classic Italian Coooking Classic Italian Coooking - pg. 157 pasta 4 2 http://www.google.com 157





Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

create a directory, and then it will work for you
Dimcriticality = DISTINCT('Table1'[criticality])
https://1drv.ms/u/s!AiUZ0Ws7G26RhiCJ5ynucmFNymxK?e=XZ82cD
Screen Capture #432.png

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

create a directory, and then it will work for you
Dimcriticality = DISTINCT('Table1'[criticality])
https://1drv.ms/u/s!AiUZ0Ws7G26RhiCJ5ynucmFNymxK?e=XZ82cD
Screen Capture #432.png

@Ahmedx , Indeed,

it does work. That's strange.

 

Thank you






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.
HotChilli
Super User
Super User

Can we see the data model please and what measure you are using?

Hello, @HotChilli ,

it's just sample data for testing, so one table:

vojtechsima_0-1678181873652.png

Here's my file.






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

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.