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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.