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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
carlottaf
Frequent Visitor

Hide column value and keep total in matrix

Hi everyone!

I have a table containing sales by month and a table having the budget by year.
I created a matrix having on the columns the month and on the values sales and budget.

 

I would like to show that sales by month and the budget only by year since I do not have the detail of the budget by month.

I was able to hide the columns of the budget for each month, shrinking the column width, but now the row height is increased.

This is the matrix I obtaied. Ideally I would like to keep the Budget € total and not the value fo reach month.

carlottaf_0-1634224841560.png

 

 

Is there a way to achieve this?

 

Thanks,

Carlotta.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @carlottaf ,

If your original budget calculation formula is similar to sum('table'[budget), you can try to update the measure for budget as below. I just create a sample pbix file(see attachment) for you, please check whether it is OK...

budget =
IF (
    ISINSCOPE ( 'Table'[field on Rows option] )
        && ISINSCOPE ( 'Table'[field on Columns option] ),
    BLANK (),
    SUM ( 'Table'[campaigns] )
)

If the above one is not working for your scenario, could you please provide the Fields pane setting of your matrix? Which field be put on Rows option? It is better if you can provide your simplified pbix file(exclude sensitive info). Thank you.

yingyinr_0-1634630412174.png

Best Regards

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @carlottaf ,

You can refer the solution in the following threads, hope they can help you resolve the problem.

Hiding certain matrix columns, only showing them in total


Turn off Word wrap in the matrix Format pane

yingyinr_0-1634627685225.png

Hiding certain matrix columns, only showing them in total

Best Regards

Hi @Anonymous !

 

I already tried this, but as you can see in the picture I posted, I was able to hide the column Budget for the months but the rows now have a very high height.

Is there a way to avoid it?

Thanks,

Carlotta.

Anonymous
Not applicable

Hi @carlottaf ,

If your original budget calculation formula is similar to sum('table'[budget), you can try to update the measure for budget as below. I just create a sample pbix file(see attachment) for you, please check whether it is OK...

budget =
IF (
    ISINSCOPE ( 'Table'[field on Rows option] )
        && ISINSCOPE ( 'Table'[field on Columns option] ),
    BLANK (),
    SUM ( 'Table'[campaigns] )
)

If the above one is not working for your scenario, could you please provide the Fields pane setting of your matrix? Which field be put on Rows option? It is better if you can provide your simplified pbix file(exclude sensitive info). Thank you.

yingyinr_0-1634630412174.png

Best Regards

Thanks a lot for the suggestion!
Yes the calculation is something like sum('table'[budget). 
I will try your solution and let you know if this solves my problem.

If the problem persists, I will attach the pbix file.

Thanks again,
Carlotta.

amitchandak
Super User
Super User

@carlottaf , not possible by default. You need to use hybrid table workarounds

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors