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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ssbagley
Helper III
Helper III

Table with Rankx, how to display detail in separate table

2/6/23 update:  Sample2.pbix 

I updated and simplified the Rankx, but I still cannot get the table below to tie out to the rank table or display the details. 

 

ssbagley_1-1675692657712.png

Sample.pbix 

Link to sample data above.

In the sample, there are three tables with Ranking measures - one with Amount, one with Count and one with Count and Amount.  My preference would be that the table underneath display the detail behind the Count & Amount, but I would be happy if it would display any of them.  Currently, I cannot get the detail table to tie to a ranking table. 

 

I've tried only ranking by amount, but the detail shows 100%, rather than just the ranked items.  Help!

 

ssbagley_0-1675466586758.png

 

6 REPLIES 6
ssbagley
Helper III
Helper III

updated main post on 2/6

Ashish_Mathur
Super User
Super User

Hi,

Your requirement is just not clear.  What result are you expecting in the second table.  Show that clearly


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

I expect the Detail table (at bottom) to tie to any one of the options above.  

For the screenshot below, I would expect the detail table to total $2225.00 and only contain Jack, Bob and Jessica's submissions.

ssbagley_0-1675469363333.png

 

Hi @ssbagley 

I took a quick at a few of the measures and after formatting, something jumped out about your ranking measures.

Can you explain the last part when you divide X by X.

Ranking by Amount = rankx (all (Expenses[Emp Name]),[Sum Amount], ,DESC) * DIVIDE([Top N by Amt],[Top N by Amt])

Ranking by Count = rankx (all (Expenses[Emp Name]),[Count of Amount], ,DESC) * DIVIDE([Top N by Count],[Top N by Count])

/**************************************************/

Ranking by Amount =
RANKX(
    ALL( Expenses[Emp Name] ),
    [Sum Amount],
    ,
    DESC
)
    * DIVIDE(
        [Top N by Amt],
        [Top N by Amt]
    )

/**********************/

Ranking by Count =
RANKX(
    ALL( Expenses[Emp Name] ),
    [Count of Amount],
    ,
    DESC
)
    * DIVIDE(
        [Top N by Count],
        [Top N by Count]
    )

Any comments?

I'm open to improvements! I borrowed it from another solution when trying to answer my questions. 

ssbagley
Helper III
Helper III

I changed the security on the link so anyone can edit (I think!)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors