Forum Discussion
Divide row by column total while keeping date filter
Hi,
I am trying to generate a column total that I can use in measures to divide each row by for a % of total. I see the quick measures for "total for category" with and without filters applied, but neither gets me what I need.
In the example below, I have a table with many data dates and rows returning employee FTEs (full time equivalents).
4 Replies
- Kishore_KVN
Solution Sage
Hello Anonymous , your requirement is not clear but still if you create All and ALLSELECTED for the table in a measure instead of a column you will get your required output.
Instead of
FTEs total allselected =CALCULATE(SUM('Dayforce'[FTEs]), ALLSELECTED('Dayforce'[DataDate]))useFTEs total allselected =CALCULATE(SUM('Dayforce'[FTEs]), ALLSELECTED('Dayforce'))If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!- AnonymousNot applicable
Thank you Kishore_KVN , but I get the same result when I make that change. It just returns the filtered value of FTEs for the location, not the column total. What I am trying to get is the 4078 figure in each row.
- Kishore_KVN
Solution Sage
Hello Anonymous , using all and all selected will give the total by remove all the external filters on that calculation. Can you please refer below screenshot for your reference.
If possible please share sample pbix will try to provide maximum help.