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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.