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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

RANK values for specific value from row cell within table - RANK + Filter

Hi all,
I am unable to find specific answer on this forum of Google, so I would be greateful if you can assist or point to best post.

I have a dataset with Names of people and their login dates.

I am trying to create column calculation that will give me ordinal numbers of their login dates, ranked per date (e.g person 1 logs for the first time on March 1 = 1, 2nd time on March 2 =2...)

I know how to make this using VAR + RANK + FILTER in PowerBI, but I am using POWER PIVOT with Excel 2013, and VAR is not working for me.

I tried various options using RANK + Filter, but nothing got it right for me.

Regards

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Not very clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

You can create Rank like, A new column

 

rank = rankx(filter(Table, [person] =earlier([person])), [login date],,asc,)

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not very clear. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

You can create Rank like, A new column

 

rank = rankx(filter(Table, [person] =earlier([person])), [login date],,asc,)

 

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak , this has actualy solved for me.

Thanks a lot!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.