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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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