Quantcast
Viewing all articles
Browse latest Browse all 217157

Percentage of Total based on Dynamic Filters (Sum = 100%)

Hello everybody,

 

I try to rebuild the quick calculation "Percentage of total" in a new measure.

 

Measure = 

VAR Volume =
   '2_komplett'[Sessions]
VAR AllVolume =
   CALCULATE('2_komplett'[Sessions];ALL('2_komplett'))

RETURN
    DIVIDE ( Volume; AllVolume )

As long as I do not use any filters the result is just the way I want it to be (below both percentages next to each other, '%SG: Sessions' is the result of the quick calulation):

 

Image may be NSFW.
Clik here to view.
1.JPG

 

But as I use a filter (eg country, device) my measure still adjusts to the grand total. I want my measure to adjust to the filter (filtered value is new total ---> Sum is 100 %) - just as the quick calculation.

 

Image may be NSFW.
Clik here to view.
2.JPG

 

Does anyone know the solution to my problem?

 

Thanks in advance

 

 


Viewing all articles
Browse latest Browse all 217157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>