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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
rachel_loh21
New Member

POWER BI matrix not showing 0

I use column total to calculate percentage in values, but it shows blank instead of 0% for those without value. Please help!

rachel_loh21_1-1725521356566.png

rachel_loh21_2-1725521427452.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from PijushRoy , please allow me to provide another insight:

Hi  @rachel_loh21 ,

I created some data:

vyangliumsft_0-1725589392048.png

 

Here are the steps you can follow:

1. Create measure.

Test =
var _column=SUMX(FILTER(ALL('Table'),'Table'[Month]=MAX('Table'[Month])),[Value])
return
DIVIDE(SUM('Table'[Value]),_column)+0

2. Result:

vyangliumsft_1-1725589392051.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks for the reply from PijushRoy , please allow me to provide another insight:

Hi  @rachel_loh21 ,

I created some data:

vyangliumsft_0-1725589392048.png

 

Here are the steps you can follow:

1. Create measure.

Test =
var _column=SUMX(FILTER(ALL('Table'),'Table'[Month]=MAX('Table'[Month])),[Value])
return
DIVIDE(SUM('Table'[Value]),_column)+0

2. Result:

vyangliumsft_1-1725589392051.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

PijushRoy
Super User
Super User

Hi @rachel_loh21 

To solve this problem, please create and use one measure in place of column

% Measure =
IF ( Table[%CT SMT percentage] = BLANK (), 0, Table[%CT SMT percentage] )

or

% Measure =
IF ( HASONEVALUE ( Table[%CT SMT percentage] ), Table[%CT SMT percentage], 0 )



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.