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.
Hi,
I have below data which the starting time for staff, I need to be able to exclude the bottom 10% of staff that have started early, and top 10% of staff that finished late for the selected period.
how can I do that as measure. I am using tabluar model so I can't share the pbxi file.
Appreciate your help.
Solved! Go to Solution.
Hi @Anonymous
Or like this?
@Anonymous
Create the following measure and assign it to the visual filter and set it equal to 1. This will exclude the top and bottom 10% of the records.
Exclude =
var __Rows = CALCULATE( COUNTROWS(Table9) , ALLSELECTED(table9))
var __RowsTop = __Rows * .1
var __RowsBottom = __Rows - __RowsTop
var __Rank = RANKX(ALLSELECTED(Table9) , CALCULATE(max(Table9[Signed In DateTime])),,ASC)
return
IF( __Rank > __RowsTop && __Rank < __RowsBottom , 1 , 0)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Also, how can I count rows based on that ranking, i.e count rows excluding top and bottom 10%?
@Anonymous , convert HH:ss to duration in min or second and the you can use top /bottom percentile
Deal with percentile
https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459
Seal with duration
https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-in-dax.aspx
https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&MessageKey=814a2cb4-3cca-4cd1-a620-c467adeaaaf6&CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&tab=digestviewer
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
82 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |