Forum Discussion

miriambb's avatar
miriambb
Helper I
3 years ago
Solved

Calculate measure with a filter

Hi everyone, 

 

I am trying to create 9 box view. In particular I am looking at the calculaled field (headcount %) that changes depending on the filters applied. for instance, I have a total headcount of 2596 and in a specific group I have a pool of 18 employees the % headcount is 18/2596  but how could I do it that when I applied a filter the % is calculated based on the specific headcount and not on the total one? And that this calculation applies to other 9 different tables? 

 

Thank you

Miriam

 

 

  • miriambb Maybe:

    % HC = DIVIDE(CALCULATE(SUM(Euro1[Headcount])),
                    CALCULATE(SUM(Euro1[Headcount]),ALLEXCEPT(Euro1,Euro1[Department]))) + 0 

3 Replies