Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all. Let say I have two tables as in the following.
I want to display the user id for top 3 general name by margin in table format.
Created a ranking measure and applied filters for 3 on this visual. It display correctly by general name, but when I pulled the user id it throw it off.
Also, wanted to show a card for the referral and capture; can't pulled the ranking measure to display top 2. Not sure what I'm doing wrong. Please help. Thank you all.
General Name Rank by Margin =
VAR MarginRank = RANKX(ALL(Sheet 1[General Name]),(CALCULATE([Sum Margin])),,DESC, Dense)
RETURN
MarginRank
Table 1
KEY ID | General Name | Margin |
111 | AA | 15233 |
222 | CA | 6703 |
223 | CAL | 7629 |
224 | CAP | 4361 |
444 | IB | 11286 |
443 | IM | 14487 |
445 | IMB | 12961 |
555 | JAK | 4225 |
666 | LEN | 3533 |
777 | REV | 16125 |
888 | TAG | 4784 |
999 | VER | 7416 |
991 | XT | 11045 |
992 | ZYT | 47073 |
Table 2
KEY ID | Referral | Capture | USER ID |
111 | 83.54 | 38.69 | ACM |
222 | 90.91 | 34.43 | HAM |
223 | 95.80 | 59.83 | BMM |
224 | 91.69 | 49.08 | ACM |
444 | 85.80 | 37.50 | HAM |
443 | 67.07 | 42.37 | BMM |
445 | 87.01 | 59.72 | ACM |
555 | 73.91 | 44.44 | HAM |
666 | 97.98 | 48.54 | BMM |
777 | 88.10 | 42.28 | BMM |
888 | 91.43 | 43.75 | ACM |
999 | 88.74 | 31.23 | ACM |
991 | 89.38 | 31.13 | HAM |
992 | 83.54 | 38.69 | BMM |
Screen caputre in PBI.
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
Thanks Ashish. Somehow I couldn't download the PBI file.
It's downloading fine. Please try again.
you may want to read this article https://www.sqlbi.com/articles/use-of-rankx-in-power-bi-measures/
User | Count |
---|---|
84 | |
80 | |
72 | |
71 | |
55 |
User | Count |
---|---|
108 | |
106 | |
93 | |
85 | |
67 |