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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors