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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

End of Date function not showing the correct max date?

Hi all,

 

I've created a new column in query editor that uses the End of Month function and it has generated the dates which range from 31.01.2017 - 31.03.2020.

 

I'm trying to use the Max date on a card from this column however it keeps showing the max date as 31.12.2019 and the first date as 28.02.2019. Why is it not showing the first date as 31.01.2017 and last date as 31.03.2020? I've checked and there's no filters etc applied, the whole data set is there.

 

Thanks in advance!

Saj

7 REPLIES 7
ryan_mayu
Super User
Super User

@Anonymous 

 

Could you please share the screenshot of your measure and data?





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

Proud to be a Super User!




Tahreem24
Super User
Super User

@Anonymous ,

Show some screen shot of that cards. And also what DAX you are using for Max and MIn date on Card visuals.

Also meanwhile try the below:

For Showing MIN Date = Take date column on card and select Earliest option (As per below Screen shot)

FOr Showing MAX Date = Take date column on card and select Latest option

Capture.PNG

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
Anonymous
Not applicable

I can't share a screenshot.

 

I have tried using the earliest and latest and it didn't work either. I'm using MAX('Sheet1'[Date]) in my formula.

@Anonymous , There can be filter at page level. Check that.

 

If you put it on card then it should show min with min and First

and Max with Max and Last

Anonymous
Not applicable

I mentioned in the original post that I've checked all filters, nothing is being applied, which is why I can't workout why the max and min wouldn't be working.

@Anonymous 

Maybe you can try this.

create a new table

1.PNG

datetime = CALENDAR(date(2017,1,31),date(2020,3,31))

create min and maxdate

maxdate = max('datetime'[Date])

mindate = min('datetime'[Date])

2.PNG 





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

Proud to be a Super User!




Anonymous
Not applicable

It needs to be dynamic using the dates in the dataset

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.