Forum Discussion
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.
Is there a way to achieve this?
Thanks,
Carlotta.
- Anonymous4 years ago
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.
Best Regards
5 Replies
- amitchandak
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/1354591
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc - AnonymousNot 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
Hiding certain matrix columns, only showing them in total
Best Regards
- carlottafFrequent Visitor
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.
- AnonymousNot 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.
Best Regards