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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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]))

 

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]))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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