Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Not applicable

date function giving error for month of October 2017 Only !


This issue relates to the dax Date() function.


It's giving wrong values in visuals e.g. a table visual for dates in October 2017, BUT is correct for all other dates AND/BUT shows semi correct data in the table data view.


I'm using the date function in the context of this dynamic filter by @Phil_Seamark .


Thats the context of the use of the function. The dynamic filter works great. Then by chance I stumbled on these erroneous dates.


It was driving me bonkers and thought it was my data or some filtering I wasn't seeing. But I've now replicated the error in a separate power bi file with none of the dynamic filter setup added and generic series generated dates.


The filter in Phils post requires a calculated date column consisting of the first day in the month in which the reference date occurs.


As discussed in Phils post a table of generic dates is generated with


			CALENDAR("2012-01-01",TODAY()) ,
		"Month" , DATE(YEAR([Date]),MONTH([Date]),1))


resulting in data like



BUT !!


out of all the data in this series dates that are in October 2017 are giving the wrong Month column values in visuals.


There's two errors.


1. The first day of october in the generated series is showing 30/09/17 instead of 01/10/17. But then the series contiues correctly from 02/10/17 onwards


2. The calculated Month that should be 01/01/17 is also showing 30/09/17 for all remaining dates in october 2017.  Then contiues correctly from 01/11/17 onwards. see below.


it's good for ALL !! dates prior... then for october gives the error....




Then goes back to correct value in november





BUT the data is partially correct in the table view of data.


A spurious / duplicate series value of 30/09/17 is addded. But the calculated Month date is correct.







 If others can replicate this would be great. 


Can anyone figure out the cause ??


My best guess is a date function error with the number of days in the month of September or October 2017


But is there some simple thing I've missed ?







Hi @Anonymous


Based on my test, I cannot reproduce the same issue as you said . You may try to check if it has any filters.  If it is not your case, please share your file. You can upload it to OneDrive or Dropbox and post the link here.





Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors