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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jcarlos
Helper I
Helper I

LASTDATE gives me 31/DEC/2021

Good morning.

 

Perhaps this will be the dumbest question for this measure.

 

I have a very simple table with this structure:

 

jcarlos_0-1634120635927.png

 

I need a card with the latest date.

 

I've tried MAX, MAXA, LASTDATE and all of them gives me as last date 31/DEC/2021 even when my last date in my table is 12/OCT/2021.

 

Dates are stored as "Date" in Excel and Power Bi.

 

Thanks in advance for your help.

 

JC

1 ACCEPTED SOLUTION

@jcarlos Based on your data provided, I tried with MAX and Format is with "DD-MMM-YYYY" pattern.

You can check the below screen shot.

Capture.JPG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

4 REPLIES 4
Tahreem24
Super User
Super User

@jcarlos Can you just share the Date column data so that we can try at our end? Most probably MAX will help you out but I wonder why you are not getting the right result.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Tahreem24 .

 

You will find the table in this link:

 

TABLE 

 

Many thanks,

 

@jcarlos Based on your data provided, I tried with MAX and Format is with "DD-MMM-YYYY" pattern.

You can check the below screen shot.

Capture.JPG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Many thanks.

 

Originally the solution didn't work in my model. I've just added an additional Dates Table...and voila!

 

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.