Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
JayTG123
Advocate I
Advocate I

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

 

JayTG123_0-1643629208309.png

 

1 ACCEPTED SOLUTION
MargaritaG
Resolver I
Resolver I

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

View solution in original post

6 REPLIES 6
JirkaZ
Solution Specialist
Solution 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"

Hi @JirkaZ I would normally use this but not all Organisations are listed on the table - so its not an accurate percentage for the overall permits / all organisations. 

JirkaZ
Solution Specialist
Solution Specialist

What @MargaritaG  says then if it's really all the orgs.

MargaritaG
Resolver I
Resolver I

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

Perfect !! Thank you so much @MargaritaG !!

Jay

amitchandak
Super User
Super User

@JayTG123 , Try like

 

divide([measure], calculate([measure],all(Table[Organization]) ) )

 

or

 

divide([measure], calculate([measure],removefilters(Table[Organization]) ) )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.