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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors