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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.