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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

0 if data is missing

Hi everyone,

 

I have the following problem:

 

I have 10 Materials, with Data for different dates. If I create a table (with the Materials an the Data for the months) with a filter for each month, I can only see the materials, which has data for the Month. How can I say, even when theres no data, I want to show all Materials and if there is data missing, its 0.

 

For example:

This is my test data:

Materialdatadate
12345101.01.2021
13245105.01.2021
143241

02.02.2021

156831

03.02.2021

 

So, now I want to see in my table, every Material for the month January, but if the other 2 Materials has no data there, I want to show "0".

 

Do you have any ideas?

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can also try  to using formula as below to repace your original field "data"

Measure= sum('Table'[data])+0

If it doesn't meet your requirement,please share your expected result in excel.

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can also try  to using formula as below to repace your original field "data"

Measure= sum('Table'[data])+0

If it doesn't meet your requirement,please share your expected result in excel.

 

Best Regards,
Community Support Team _ Eason

 

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please correct me if I wrongly understood your question.

I assume you want to create a table visualization.

Please try to write measure something like below.

 

Your measure = coalesce (sum( your data column), 0)

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Linkedin: https://www.linkedin.com/in/jihwankim1975/


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.