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
Tlotly
Resolver II
Resolver II

Max date DAX

Good day,

I'm creating a column with a simple measure but it's returning a wrong date of 31 Dec 2023. Please see below

   Column = max('Drop-Out details'[DropOutGLDate].[Date])
Tlotly_0-1683097927028.png

Any idea why this would be?

 

Thank you in advance.

 

 
1 ACCEPTED SOLUTION
myon
Frequent Visitor

The .[Date] part refers to a auto generated calendar that PBI created on load. It searches your data, finds dates and creates a calendar with full years encompassing all of your data.

Try removing the .[Date] part.

myon_0-1683104234012.png

 

View solution in original post

7 REPLIES 7
myon
Frequent Visitor

The .[Date] part refers to a auto generated calendar that PBI created on load. It searches your data, finds dates and creates a calendar with full years encompassing all of your data.

Try removing the .[Date] part.

myon_0-1683104234012.png

 

Thank you so much @myon . It worked, I removed the date part.

myon
Frequent Visitor

You are most welcome.

Idrissshatila
Super User
Super User

@Tlotly , i didn't understand what's the requirement, if you want the max date then it's giving it right.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




But the max date of this column is Feb 2023: I'm expecting Feb 2023 as a value for my column.

 

Tlotly_0-1683103304105.png

 

Idrissshatila
Super User
Super User

Hello @Tlotly ,

 

so the measure is returning the maximum date in all the column, regarding if you filtered it in the data view.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




@Idrissshatila  thank you for the quick response.

 

So which measure would work? I even created a measure, still getting the same results.

Also tried this measure:

Column = CALCULATE(MAX('Drop-Out details'[DropOutGLDate].[Date]),ALL('Drop-Out details'))

, still not working.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.