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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
314mp_M0th4
Resolver I
Resolver I

Measurement for summing numbers by category but adding 0 where there is no value.

Hello, I'm making a matrix:

314mp_M0th4_0-1692610205442.png

Where the left hand side is type and right hand side is cost. As you can see each type has a number label, 1.1, 2.3 etc. However there are some number labels missing. There should be a 5.1, 6.4 and 6.5 to add but the thing is there are no records in the cost data for these type labels. Therefor I would like there to be a line for those types but with 0 for cost. Is it possible to do this with measurements?

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @314mp_M0th4 

Try to add 0 to your measure...

[your measure]+0

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @314mp_M0th4 

Try to add 0 to your measure...

[your measure]+0

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

OMG thanks, this is such a simple fix, However doing this, I also get a row with a blank type with cost = 0 which I would like to get rid of as well

Glad to help 🙂
Can you show what you mean by blank type?

If it is a category from rows, just filter it out from the filter pane...
uncheck the blanks:

Ritaf1983_0-1692613148197.png

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

I just used exclude to get rid of the blank row nevermind

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors