Forum Discussion
Filtered % value over total value.
Hi all,
Probably very simple but I am stuck in finding the correct DAX Forumla to get the percentage of "Total Permits" per Organisation, over the overall total. This is to see which Organisation is the busiest by percentage. % - The table below, the Organisations have been filtered.
Jay
- Anonymous4 years ago
Hey,
Total Permits is probably a measure here e.g. SUM([Total Permits]) or some similar function to count permits- thus would rename # Permits.
Try to create a new measure # Total Permits
Calculate ( SUM([Total Permits]), ALL([Organisation]))
Then % measure would be just DIVIDE (# Permits , # Total Permits)
Let me know if this is what you are looking for
6 Replies
- AnonymousNot applicable
Hey,
Total Permits is probably a measure here e.g. SUM([Total Permits]) or some similar function to count permits- thus would rename # Permits.
Try to create a new measure # Total Permits
Calculate ( SUM([Total Permits]), ALL([Organisation]))
Then % measure would be just DIVIDE (# Permits , # Total Permits)
Let me know if this is what you are looking for- JayTG123Advocate I
Perfect !! Thank you so much Anonymous !!
Jay
- amitchandakSuper User
JayTG123 , Try like
divide([measure], calculate([measure],all(Table[Organization]) ) )
or
divide([measure], calculate([measure],removefilters(Table[Organization]) ) )
- JirkaZSolution Specialist
If it's the Matrix visual you are using then the easies way would be to drop the "Total Permits" to the table again and in the "Values" pane switch it to "Show Value As" --> "Percent of grand total"