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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Islam
Helper V
Helper V

help on hiding months with no allocated values in a matrix

Hello Everyone

i'm trying to create a matrix showing the Pouring Amount which represents Revenue and Total Expenses which is the sum of Expenses and Purchased materials 

so i created the following measures

Total Materials Amount:=SUMX('Total Amounts','Total Amounts'[Materials Amount])

Total Expenses Amount:=SUMX('Total Amounts','Total Amounts'[Expenses Amount])

Total Pouring Amount:=SUMX('Total Amounts','Total Amounts'[Pouring Amount])

Net Profit/Loss:=[Total Pouring Amount]-[Total Expenses]

and that's how i wanna show the pivot table

Untitled.png

i have no values for January 2020 but there are values for January 2021 so when i filter to show just January 2021 (It's Called يناير) with years rows displayed i get the correct values for January 2021 but an empty month for 2020 with the sum of all 2020 values like following picture

1.png

I want to hide 2020 January with no values and also fix the grand total calculation

Any help would be highly appreciated

2 REPLIES 2
Anonymous
Not applicable

Hi @Islam ,

You can refer the content in the following links to achieve it about hiding the rows with empty values:

How can I hide a pivot table row without any data?

How to Prevent Empty Cells from Displaying in a Pivot Table

What's the grand total calculation problem? The grand total value is wrong or something else? Could you please provide some original data(exclude sensitive data) to explain it? Thank you.

Best Regards

Islam
Helper V
Helper V

Any help gentlemen ?!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors