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
Jyaul1122
Helper III
Helper III

Rank 1,2 , 1,2,3

Hi, I have a table and need to find like Rank(Required Column). 

Jyaul1122_0-1757590956019.png

I need to get DAX column like Rank for each Project and Order  via Date . For example Project P1 have order A and B and their Date so that for Order A result will be like 1  and 2 and also for B will be 1 and 2 as show below:

 

Jyaul1122_1-1757591158665.png

for P2:

Jyaul1122_2-1757591193811.png

 

For P3 there are two order but repeat three times so that output will be 

Jyaul1122_3-1757591283536.png

 

 

How can achieve using DAX Column

Row data: 

ProjectOrderDate
P1A9/14/2025
P1A9/15/2025
P1B9/16/2025
P1B9/17/2025
P2C5/7/2025
P2D5/7/2025
P2C5/9/2025
P3G7/8/2024
P3H7/9/2024
P3H7/10/2024
P3G7/5/2024
P3H7/6/2024
P3G7/7/2024

 

 

1 ACCEPTED SOLUTION
v-nmadadi-msft
Community Support
Community Support

Hi @Jyaul1122  ,
Thanks for reaching out to the Microsoft fabric community forum.

I have used the DAX code provided by @johnt75  to create the required rank order for your data

Here is the generated output:

vnmadadimsft_0-1757670384645.png

 



Attaching the .pbix file for reference

I hope this information helps. Please do let us know if you have any further queries.
Thank you

View solution in original post

6 REPLIES 6
v-nmadadi-msft
Community Support
Community Support

Hi @Jyaul1122 

As we haven’t heard back from you, we wanted to kindly follow up to check if the suggestions  provided by the community members for the issue worked. Please feel free to contact us if you have any further questions.

 

Thanks and regards

v-nmadadi-msft
Community Support
Community Support

Hi @Jyaul1122 

May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


Thank you

v-nmadadi-msft
Community Support
Community Support

Hi @Jyaul1122 ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @Jyaul1122  ,
Thanks for reaching out to the Microsoft fabric community forum.

I have used the DAX code provided by @johnt75  to create the required rank order for your data

Here is the generated output:

vnmadadimsft_0-1757670384645.png

 



Attaching the .pbix file for reference

I hope this information helps. Please do let us know if you have any further queries.
Thank you

Gabry
Super User
Super User

Heyyy,

this is your column

 

rank column = RANK(DENSE,,ORDERBY('Table'[Date]),,PARTITIONBY('Table'[Project], 'Table'[Order] ))
johnt75
Super User
Super User

You can create a calculated column like

Rank = RANK(
    ALL( 'Table'[Project], 'Table'[Order], 'Table'[Date] ),
    ORDERBY( 'Table'[Date], ASC ),
    PARTITIONBY( 'Table'[Project], 'Table'[Order] )
)

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.