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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ADP007
Helper IV
Helper IV

Rank and count

Hi all,

 

How can I achieve the following?

I would like to calculate the position of a row based on attributionPathid and timestamp (column Position) and the total number of rows for attributionPathid (column PathCount).

 

Thanks

D.

 

ADP007_0-1705396203171.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@ADP007 , Try the new Rank Function

Rank(dense, allselected(Table[attributionPathid], Table[timestamp]),ORDERBY(Table[timestamp],DESC))

 

Power BI - New DAX Function: RANK - How It Differs from RANKX: https://youtu.be/TjGkF44VtDo

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

Thanks @amitchandak 

 

Thanks for your reply.

Your solution works when I filter on an attributionpathID bu doesn't work when there are no filters

Without filter

ADP007_1-1705407991819.png

 

With filter

 

ADP007_2-1705408027190.png

 

 

Thanks

David

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.