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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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