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
Paco
Frequent Visitor

Fill Gaps in Matrix

I want to fill with 0 when there is no value, how can I do it?

 

Matrix 01.png

 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Paco

 

You can try using a Measure:

 

MyMeasure=sum(Table[YourField])+0




Lima - Peru

View solution in original post

7 REPLIES 7
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Paco

 

Adding a +0 to your forumla will sometimes work, but if you don't actually have data for that intersection you have nothing to add 0 to

 

eg. in your photo, do you have any data for ZGFN-005 for April 2016?  I'm guessing not so you may have to invent some 0 rows to force this. 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

I am using a data from SQL Query, so I can´t add or I dont know how to add rows with 0. 

 

What I want to do is something similar to a pivot table in Excel "For empty cells show" with this option in excel I resolve this but I dont know how to do it in Power BI

 

 

 

 

don pivot table.pngquery.png

 

 

Vvelarde
Community Champion
Community Champion

@Paco

 

Hi, What are using in Values Section in The Matrix?.

 

A Field, a measure?

 

 

 

 




Lima - Peru
Paco
Frequent Visitor

A field

Vvelarde
Community Champion
Community Champion

@Paco

 

You can try using a Measure:

 

MyMeasure=sum(Table[YourField])+0




Lima - Peru
Paco
Frequent Visitor

Thank you very much, it has been solved solucion.png

DoubleJ
Solution Supplier
Solution Supplier

Do you use a measure? If so you can try adding 0 (+0) in your formula.

 

If you use values from a column you can create a new column referring your existing one and adding 0.

 

Hope this helps!

JJ

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.