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
MasterSonic
Helper IV
Helper IV

Rankx on more than 1 column

Hi guys,

1 table with multiple columns, 2nd table too. Tables are linked with column Code

 

Columns of our interests are 

Table1[Code]

Table2[Group]

Table2[SoldDate]

 

I would like to rank it by SoldDate and Group

 

Can anyone advise please 

 

 

 

 

 

 

 

1 REPLY 1
ValtteriN
Super User
Super User

Hi,

As you suspected RANKX would be the function to use in these kind of scenarios. I recommend checking this article by SQLBI: https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/

You should be able to consctruct the measure you are looking for with the methods described there.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.