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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.