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

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

Reply
Anonymous
Not applicable

Ranking using partition from relationship

I have a table of item details, and a table of events, which are either good or bad (1 or 0). There is a one-to-many relationship between 'Details'[Item ID] and 'Events'[Item ID]

 

I'm trying to write measures that will rank each Item ID by Sum(Good/Bad), partitioned by the Item Owner, and an overall ranking.

Any filters on the visual/page should affect the ranking.

 

Details

Item IDOwner

101

Dave
102Jeff
103Jeff
104Jeff
105Dave
106Jeff

 

 

Events:

Item IDGood/Bad
1011
1010

101

1

101

0

102

1

102

1

103

0

103

0

103

0

103

0

104

1

104

0

104

0

104

0

105

1

 

 

Desired Result:

Item IDOwnerCountGoodRank OverallRank by Owner

101

Dave4211
102Jeff2211
103Jeff4053
104Jeff4132
105Dave1132

 

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

RnkEvt.pbix

 

ThxAlot_0-1690364382917.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

1 REPLY 1
ThxAlot
Super User
Super User

RnkEvt.pbix

 

ThxAlot_0-1690364382917.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.