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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
dmace
Frequent Visitor

Consolidate rows into one row using RANK()

I am trying to use partitions to consolidate the rows in my table into one row. 

The data is for candidates who have been referred by multiple people (up to 4). A candidate can have multiple rows containing data as such (there are more columns, however they aren't relevant to this question as they will be the same in all that candidates rows):

dmace_0-1687799996558.png
As you can see I am able to succesfully rank the rows by using a table function and RANK(). I wish for the data to look like:

dmace_1-1687800101788.png

Then I can remove the additional rows by filtering to only show Rank 1. I have successfully accomplished this task in Workday's PRISM, however due to the restrictions PRISM has on refreshes I wish to do this in PowerBI to ensure the data is up-to-date in real time. Any help or tips would be greatly appreciated, thanks.


 

 

1 ACCEPTED SOLUTION
dmace
Frequent Visitor

5 REPLIES 5
VijayP
Super User
Super User

@dmace 

HAve you tried Calculate Function? 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


dmace
Frequent Visitor

I have but was unable to get it to work, could you give me any tips on how to use Calculate to accomplish this?

 

@dmace 

Calculate (Average(column), filter(table name, rankcolumn = 1)), try this




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


dmace
Frequent Visitor

The values are text so I don't believe Average will work.

dmace
Frequent Visitor

dmace_0-1687868695108.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.