Forum Discussion
Pecentage in a matrix with grouping Help
Hi Mart,
You could use the DAX below.
Measure = sum(Table2[Amount])/CALCULATE(SUM(Table2[Amount]),ALLEXCEPT(Table2,Table2[Group]))
Sample data
Regards,
Charlie Liao
Charlie
Thats ecactly what I want, but I cant repeate it I will start again from scratch.
Could it be because I have it in a matrix?
Mart
- v-caliao-msft9 years ago
Microsoft Employee
Mart, Could you please provide us more information why you cannot do it? If possible providue us some screenshot, so that we can make further analysis.
Regards,
Charlie Liao
- Mart9 years ago
Advocate IV
Cracked it! At least I have the correct numbers
I used 3 new measuresFirst New Measure
GrandTotal = CALCULATE(SUM(Table2[People]),GROUPBY(Table2,Table2[Group]),ALLEXCEPT(Table2,Table2[Year],Table2[People]))
Second New Measure
PeopleSum = SUM(Table2[People])
Third New Measure
Percent = Table2[PeopleSum]/Table2[GrandTotal]
QuestionIs there an easier way?