Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

% 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.

 

 

  • Hi Anonymous 

    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

2 Replies

  • az38's avatar
    az38
    Community Champion

    Hi Anonymous 

    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

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Az38,


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

       

      Cheers