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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.