Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Tevon713
Helper IV
Helper IV

Display top category by rank in another column

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 IDGeneral NameMargin
111AA15233
222CA6703
223CAL7629
224CAP4361
444IB11286
443IM14487
445IMB12961
555JAK4225
666LEN3533
777REV16125
888TAG4784
999VER7416
991XT11045
992ZYT47073

 

Table 2

KEY IDReferral Capture USER ID
11183.5438.69ACM
22290.9134.43HAM
22395.8059.83BMM
22491.6949.08ACM
44485.8037.50HAM
44367.0742.37BMM
44587.0159.72ACM
55573.9144.44HAM
66697.9848.54BMM
77788.1042.28BMM
88891.4343.75ACM
99988.7431.23ACM
99189.3831.13HAM
99283.5438.69BMM

 

Screen caputre in PBI.

Tevon713_0-1652190284338.png

 

 

 

Tevon713_1-1652190284362.png

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish. Somehow I couldn't download the PBI file.

It's downloading fine.  Please try again.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.