cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors