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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Syndicate_Admin
Administrator
Administrator

Fill in with zero white spaces without losing context

Good afternoon everyone, I have a matrix that has blank spaces as seen in the picture.

jasencio_0-1643926460298.png

When I add a new measure the following measure:

Measure 2 = COALESCE(SUM(FACT_TRANSACCIONES[NU_IMP_TRX_APP]),0), all values that have the lookup tables (dimension) in the array are added with the "0" as the value.
jasencio_1-1643926653004.png

Could you help me as I avoid adding the columns and rows that I initially did not have them?

From antenamo thank you very much for the suggestions.

1 REPLY 1
AllisonKennedy
Super User
Super User

@Syndicate_Admin @jasencio 

 

You need to find the context and create a measure that calculates that (for example the Total or Subtotal columns).

Subtotal = CALCULATE( [Measure] , ALL( tablename[columnname]) )

 

Where tablename[columnname] is the column that's used in the columns of your matrix.

 

Then add a new measure:

IF( [Subtotal] >0, 0 + [Measure])


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors