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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.