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 guys,
i need to create a rankx measure to get the top 10 values
i have two different tables:
There's a measure in each table:
table a:
table b:
totalB =
CALCULATE(
DISTINCTCOUNT(tableb[EPPARNR]);
FILTER(tableB;
AND(tableb[DAYS_BETWEEN] >=0;
tableb[DAYS_BETWEEN] <= 30)))
then, i created a measure to get the percentage:
% RV = divide(totalB; totalA)
now, i need to get the top 10 result. It's more than 5mi rows each table, i tried to use the % measure in a bar chart but took too long to respond 😞
i also tried some measures like rankx + all + calculate, but didn't work.
Thanks a lot!
Hi @Anonymous ,
Does that make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.
Best regards
Amy
Hi @v-xicai,
unfortunelly, it couldn't help.
Actually, that's exacly the result that i need, but with a better performance. When i tried "Top N", it took several minutes to work.
Is a big dataset and i need to use a measure in the data field. I think is the reason to a bad performance.
Hi @Anonymous ,
You may go to Filter Pane, choose option Top N. At that point, you may just drag in the measure [% RV] you want the Top N to run.
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.
@Anonymous first this measure need change
table b:
totalB =
CALCULATE(
DISTINCTCOUNT(tableb[EPPARNR]);
tableb[DAYS_BETWEEN] >=0;
tableb[DAYS_BETWEEN] <= 30)
read this for ranking
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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 |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |