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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Rank based on date for each individual user

Hello all,

 

I am trying to write a measure or column (whichever one does the trick) that ranks the due date for each individual in the table based on his or her respective due dates. For example, I have this table below. Whenever I try to rank their due dates I get an overall rank (see rank column) . What I am looking for is what's in the rankx column. A rank of due date for each customer only. Rankx example.PNG

 

Any ideas on how I can do this?

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try this column

 

Column =
RANKX (
    FILTER ( table1, Table1[ID] = EARLIER ( Table1[ID] ) ),
    Table1[Date],
    ,
    ASC,
    DENSE
)

Regards
Zubair

Please try my custom visuals

View solution in original post

5 REPLIES 5
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try this column

 

Column =
RANKX (
    FILTER ( table1, Table1[ID] = EARLIER ( Table1[ID] ) ),
    Table1[Date],
    ,
    ASC,
    DENSE
)

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

That did it. Thanks so much.

Anonymous
Not applicable

Hey I am also trying this but did not work for me

kindly help

 

 

Anonymous
Not applicable

It is showing below erro message

"EARLIER/EARLIEST refers to an earlier row context which doesn't exist."

You can't use it in a measure, create a calculated column.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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