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 August 31st. Request your voucher.
Hi everyone, I have this data:
Group Age | Qty |
25 - 34 | 1992 |
19 - 24 | 1726 |
45 - 54 | 1316 |
35 - 44 | 948 |
63 - 72 | 925 |
55 - 62 | 803 |
'+ 72 | 725 |
7 to 14 | 497 |
15 - 18 | 444 |
4 to 6 | 149 |
0 - 3 | 86 |
The QTY is a measure that is called [Active Members]
I created this measure that give me the Age Group with most Active Members:
Hi,
Top 1 is actually returning a list like this in your dax:
Instead of using Top1 try using RANKX
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Hi,
Thank you for the explanation. I tried to translate to the report and only for the biggest qty it works, for the less, don't. I changed the MAX to MIN and the ASC to DESC and also played with the combinations but didn't succed.
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
9 | |
7 |