Forum Discussion

carlottaf's avatar
carlottaf
Frequent Visitor
4 years ago
Solved

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.

  • Anonymous's avatar
    Anonymous
    4 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