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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Dylanharper
New Member

% Measure Query

Hi All,


I hope everyone is doing well and thanks in advance, with any assistance provided with my query " PS Apologies in advance if this is not the correct section of the forum "


I'm creating a dashboard which shows the performance of waste management services, data includes such elements as recycling rates achieved by month, total waste generated etc, etc.


Most of the charts are easy to create as the fields are related to how I’ve laid out my data. However what I would like to show is the % of a certain waste stream against the total waste generated. for example,

 

Total waste generated, 293,114
General Waste Generated 74,152

 

Therefore, as a percentage of the total waste generated, General waste is 25.30%.


An example of how I've laid out my data is below.

 

Waste Data.JPG

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Dylanharper 

try a measure like

Measure = DIVIDE(
CALCULATE( SUM('Table'[Waste]), ALLEXCEPT('Table', 'Table'[Type]) ),
CALCULATE( SUM('Table'[Waste]), ALL('Table') )
)

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Dylanharper 

try a measure like

Measure = DIVIDE(
CALCULATE( SUM('Table'[Waste]), ALLEXCEPT('Table', 'Table'[Type]) ),
CALCULATE( SUM('Table'[Waste]), ALL('Table') )
)

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi Az38,


Thanks for the reply, that worked, after using the mesaure I had to set the filter !!! 😂

 

Cheers 

 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.