The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I need to calculate average of resolution time which should exclude 1% extreme values means top and bottom 1% values.
Average of resolution time= (Resolved On Date - Created on Date) divided by total number of ticket count
So if I have 1000 resolved ticket , we should exclude the 10 tickets that have the shortest resolution time and the 10 tickets that have the longest resolution time.
I have tried using RANKX function to calculate top and bottom rank on resolution time(difference between resolved and created) but not able to get it right and also, how do I combine both top and bottom in final query.
TopRANK = RANKX (table,table[ResolutionTimeInHr])
Solved! Go to Solution.
@Anonymous TRIMMEAN - Microsoft Power BI Community
@Greg_Deckler I don't want to disturb original fact table as we have other business logic to be applied on whole data. Is it possible to achieve this without introducing another fact table ?
@Anonymous It's a measure. Shouldn't introduce another fact table, just need to use it against your current table. If you post sample data, I can be more specific.
@Greg_Deckler My bad just realized its measure in your pbix file , actually I have been trying with tables/columns/measure and it is still throwing an error .
Here is the sample excel file with data Sample file
Its throwing an error at Value at the end . It would be great if you can help on this
Thanks much !
@Greg_Deckler Its working amazingly . Thanks a lot for all your effort and great work 🙂
@Anonymous TRIMMEAN - Microsoft Power BI Community
Thanks very much Greg @Greg_Deckler !
I am going through the detailed solution and it will take a while for me to understand how the solution is working and apply the same logic in my data model.
I see here we are using calculated table and not sure if we can get rid of this and do it using just column/measures or we have any simpler solution to this .
Thanks again for your help !
User | Count |
---|---|
15 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |