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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
common763
Helper III
Helper III

Most Recent Date Rows Display Only

I have a dataset similar to the below.  All I want to do is create a data table that will only display the Program, Version and Date.  The end-user only wants to see most recent version.  I can easily do this if I do not include the version as I can display most recent date.  The problem arises when I want to include the version number.  It is free text so I have a PROGID and Program to align it with but will show everything (every version and associated date).  Is there a column or measure I can write to only show Program, and Most recent date w the associated version?  So instead of all three ABC versions displayed below, I would just display version C with 3/1/2022.

 

ProgramPROGIDVersionDate
ABC1a1/1/2020
ABC1b2/1/2021
ABC1c3/1/2022
EFG2a1/1/2020
EFG2b2/1/2021
EFG2c3/1/2022
HIJ3a1/1/2020
HIJ3b2/1/2021
HIJ3c3/1/2022
2 ACCEPTED SOLUTIONS
AbhinavJoshi
Responsive Resident
Responsive Resident

Hello, you can use a measure to calulate the latest date for the Version. Navigate to modelling tab, and then New Measure. In the formula bar enter this formula 

Latest Date = CALCULATE(MAX('Sheet1'[Date]), ALLEXCEPT('Sheet1', 'Sheet1'[Version])). Change the Sheet1 name with your table name. Then you can bring this measure to your table/matrix 

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Please find attached the PBI file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Please find attached the PBI file.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks.  Disregard other message.  Got it to work.  I accepted this as a solution but dont see it anymore.  Not sure if it registered.  Thanks again.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
AbhinavJoshi
Responsive Resident
Responsive Resident

Hello, you can use a measure to calulate the latest date for the Version. Navigate to modelling tab, and then New Measure. In the formula bar enter this formula 

Latest Date = CALCULATE(MAX('Sheet1'[Date]), ALLEXCEPT('Sheet1', 'Sheet1'[Version])). Change the Sheet1 name with your table name. Then you can bring this measure to your table/matrix 

Helpful resources

Announcements
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.