Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MaggieWang
Frequent Visitor

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.

1 ACCEPTED SOLUTION

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:

86.png

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.

View solution in original post

8 REPLIES 8
amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example. If possible please share a sample pbix file after removing sensitive information.
Thanks

Thank you @amitchandak . I  don't seem to be able to attach a file but the sample pbix file is provided on this tutorial page https://docs.microsoft.com/en-us/power-bi/sample-human-resources.PBIX_Query.JPG

Please share formula of Sep%Active and formula of any measure used in it

Thank you. Here are formulas used in these measures:

Apologies, I don't seem to be able to copy and paste these formulas so had to load in as an image.

Measures.JPG

 

 

Is the chart is on Sep%OfActive.

Check out the impact select of the year on Sep%OfActive. I doubt it is changing. (Either active or Sep should have additional relationship clause )

 

Can also share screen short relation. OR Send me Link to download pbix from the location you shared. I checked but did not get pbix download link.

Thank you. I selected year 2013 and the inconsistancy persists.

 

Please find below a link to the sample workbook.

Human resources sample file 

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:

86.png

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.

Hi Amy @v-xicai , thank you so much for your help, your solution works like magic! I have been struggling with this problem for weeks and am truly grateful for your help. It is by far the best Christmas present for me! Once again thank you..

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.