Forum Discussion

MaggieWang's avatar
MaggieWang
Frequent Visitor
6 years ago
Solved

Human Resources Sample File - Sample%ofActive Total shows different values in different visuals

My query relates to Human Resource sample file for Power BI. I set a filter on Year 2014. I then plot measure Sep%ofActive (in Employee table) and Period (in Data table) into a waterfall visual. The total shown in this graph says 51.7%. When the same measure if plotted into a Card visual (without Period), it shows 48.99%. Why the tatals shown in these two visuals are different, even though I am plotting the same measure? Many thanks.

  • v-xicai's avatar
    v-xicai
    6 years ago

    Hi MaggieWang ,

     

    You might add ALLSELECTED function to take effect of slicer filter in the formula [Actives] as follows.

     

    Actives = CALCULATE([EmpCount], FILTER(ALLSELECTED(Employee), ISBLANK(Employee[TermDate])))

     

    Result:

    Best Regards,

    Amy

     

    Community Support Team _ Amy

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

8 Replies