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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
StuartSmith
Power Participant
Power Participant

Display Most Recent Date for each Device ID (Ranked)

How can I get it so the table visual only shows 1 one per "Device ID" where the row is the most recent date.  I have manged to rank each row for each Device ID, but now stuggling to just get a single row for each Device ID.   Hope that makes sence.  I dont want the "Ranking" column visible, but its just there for display purposes.

 

 

StuartSmith_0-1741704340215.png

Thanks in advance..

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@StuartSmith , Use the Rank function as measure and filter on Index Function

Index Function
calculate([Meausre], index(1, allselected(Table[Device], Table[Last Update Date]), orderby(Table[Last Update Date],desc),,partitionBy(Table[Device]) ) )

 

Example of rank

New Rank Desne = rank(DENSE,allselected(Table[Device], Table[Last Update Date]),orderby(Table[Last Update Date],desc),partitionBy(Table[Device]))

 

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
StuartSmith
Power Participant
Power Participant

Thanks, that worked.

amitchandak
Super User
Super User

@StuartSmith , Use the Rank function as measure and filter on Index Function

Index Function
calculate([Meausre], index(1, allselected(Table[Device], Table[Last Update Date]), orderby(Table[Last Update Date],desc),,partitionBy(Table[Device]) ) )

 

Example of rank

New Rank Desne = rank(DENSE,allselected(Table[Device], Table[Last Update Date]),orderby(Table[Last Update Date],desc),partitionBy(Table[Device]))

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors