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
yforti
Helper II
Helper II

Help with calculated dates.

Hi guys,

I need help to calculate only the last date by NR_RESERVA:

For example, the expected result for the number AFC10000055 is: 11/04/2022 because this is the last date for this key number.

I need it in the measure or in the column. So the model needs to calculate the last date for each key number

Capturar.PNG

1 ACCEPTED SOLUTION
ChrisMendoza
Resident Rockstar
Resident Rockstar

@yforti  - I think you can just do as:

Measure = 
CALCULATE(
    MAX(TableName[Date]),
    ALLEXCEPT(TableName,TableName[Group])
)

image.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
ChrisMendoza
Resident Rockstar
Resident Rockstar

@yforti  - I think you can just do as:

Measure = 
CALCULATE(
    MAX(TableName[Date]),
    ALLEXCEPT(TableName,TableName[Group])
)

image.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



twentyninefifty
Frequent Visitor

Output can be a table?

Try summarize NR_RESERV and then lastdate(date) for the second column.

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.