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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yiruan-msft !

 

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.

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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