Forum Discussion
Column chart display only specific records
Hello, I am tracking some donation data and found some measures to give me the data I want to see in a Matrix visual, but I can't figure out how to display specific records in a column chart. To explain, the donation categories are in 3 different Groups - A, B and C. I was able to show, with the Matrix, the data as the following:
I want to display in a column chart Group B and Group C only. So, if I create a column chart with all 3 Groups I get this,
But I want this:
If, I hide Group A, I get this:
How do I get the chart to display only the two groups correctly? Thank you.
Hello, you will need a measure to achieve this. Heres the DAX but you will need to massage it to your table name, field name etc:
% of Group =DIVIDE(SUM(Donation[Val]),CALCULATE(SUM(Donation[Val]),ALL(Donation[Group])),0)
3 Replies
- samdthompsonMemorable Member
Hello, you will need a measure to achieve this. Heres the DAX but you will need to massage it to your table name, field name etc:
% of Group =DIVIDE(SUM(Donation[Val]),CALCULATE(SUM(Donation[Val]),ALL(Donation[Group])),0) - AnonymousNot applicable
Thank you, that was very helpful, but how do I show the data labels as %? Is there a format within the Measure that should be added?
- AnonymousNot applicable
I found it! In the Measure Tools. All good now. Thanks again!