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
Heleo
Frequent Visitor

Last date of specific values

Hi everyone,

 

I have a table with different serial numbers and the date they were used. But I'd like to add a new column with the date of last use, for EACH serial number of my table. I've tried many things I found online, but I either get just the max date, circular dependencies, date duplicates, so on & so on. Nothing works.

Can you help me please?

 

Example of my table :

Serial numberDate of use
xLg5YcjL2020-10-22 20:52:10.570
xLg5YcjL2018-01-16 18:01:05.453
xLg5YcjL
2016-08-16 13:48:24.973
Q9qrVFoV2020-02-12 13:42:35.190
Q9qrVFoV2017-06-13 13:57:49.467

 

What I'd like :

Serial numberDate of useDate of last use
xLg5YcjL2020-10-22 20:52:10.5702020-10-22 20:52:10.570
xLg5YcjL2018-01-16 18:01:05.4532020-10-22 20:52:10.570
xLg5YcjL
2016-08-16 13:48:24.9732020-10-22 20:52:10.570
Q9qrVFoV2020-02-12 13:42:35.1902020-02-12 13:42:35.190
Q9qrVFoV2017-06-13 13:57:49.4672020-02-12 13:42:35.190

 

Many thanks for your help !!

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Heleo 

Try this for a calculated column in your table

Date of last use =
CALCULATE (
    MAX ( Table1[Date of use] ),
    ALLEXCEPT ( Table1, Table1[Serial number] )
)

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

3 REPLIES 3
camargos88
Community Champion
Community Champion

Hi @Heleo ,

 

You can create a column like:

Last Date = CALCULATE(MAX('Table'[Date of use]), ALLEXCEPT('Table', 'Table'[Serial number]))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Thank you a lot guys! This solution worked perfectly!

AlB
Community Champion
Community Champion

Hi @Heleo 

Try this for a calculated column in your table

Date of last use =
CALCULATE (
    MAX ( Table1[Date of use] ),
    ALLEXCEPT ( Table1, Table1[Serial number] )
)

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.