Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear BI community,
In the below Power BI Matrix (filters applied: fiscal year is 2020-21 and supplier is supplierX), I have 2 rows being firstly Area of Law (12 of these), and Matter Name(hundreds of these). In the values I have client name, matter start date, and total invoiced amount. What I am trying to do is filter out to the top ten matters by total amount invoiced under each area of law (highlighted in sky blue). I thought I could achieve this by creating a rankx measure but it is not working as I expected. How can I proceed so that each area of law section has only the top ten matters invoiced within each area of law? I also do not have access to the advanced filter where I can filter by N on the values.
Please let me know, thank you for your help.
Solved! Go to Solution.
@Anonymous , Assumed Total Amount Invoiced is a measure. Try a measure like and filter for <=10
Rankx(filter(summarize(allselected(Table), Table[Area of Law], Table[Client Name]), [Area of Law] = max([Area of Law]) ), [Total Amount Invoiced],,desc, dense)
or refer
https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/
@Anonymous , Assumed Total Amount Invoiced is a measure. Try a measure like and filter for <=10
Rankx(filter(summarize(allselected(Table), Table[Area of Law], Table[Client Name]), [Area of Law] = max([Area of Law]) ), [Total Amount Invoiced],,desc, dense)
or refer
https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/
Thank you very much Amit. I referred to your link and was able to make the code to solve this issue perfectly. Sincerely appreciated.
User | Count |
---|---|
123 | |
76 | |
62 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |