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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PBI_007
New Member

Need Support with MQuery

Hello Power BI Gurus,

 

I am new to Power BI and need help to rank my data based on two columns using Power Query.

I have explored ranking in desktop but my boss wants me to use Power Query.

Can anyone help me please?

I am providing some sample data base don which the ranking needs to be done.

 

ItemName

EndDate

Recliner

10/31/2020

Chair

10/31/2020

Recliner

10/31/2020

Recliner

04/30/2020

Chair

11/30/2019

Recliner

01/01/2021

Recliner

04/30/2020

Recliner

10/31/2020

Chair

11/30/2019

Chair

11/30/2020

Chair

10/31/2020

 

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Hello @PBI_007 ,

 

You would need to use the concept of grouping and indexing here.

I had a similar requirement and was able to achieve it.

Refer the attached file.See it's helpful for you.

 

Appreciate your Kudos if the solution helped.

View solution in original post

2 REPLIES 2
PC2790
Community Champion
Community Champion

Hello @PBI_007 ,

 

You would need to use the concept of grouping and indexing here.

I had a similar requirement and was able to achieve it.

Refer the attached file.See it's helpful for you.

 

Appreciate your Kudos if the solution helped.

Thank you for your response. Trying your solution.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Kudoed Authors