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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Analitika
Post Prodigy
Post Prodigy

Calendar generation BUG

Why calendar generates wrong dates?

tbl_PL[EndOfMonth] have maximum date 2020-09-30

 

But this measure generates good dates, but slicer show wrong dates until 2020-12-31 instead of 2020-09-30

 

Calendar =
CALENDAR (
MIN(tbl_PL[EndOfMonth]),
MAX(tbl_PL[EndOfMonth])
)
 
and result is same like this
 
Date = CALENDAR (
DATE ( MIN(tbl_PL[Year]), 1, 1),
DATE ( MAX(tbl_PL[Year]), 12, 31)
)
 
 
Analitika_0-1607335518094.png

 

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @Analitika 

According to your description and picture, I created the data and measure and Slicer similar to yours, and I can also find this issue, I guess the reason is that you put the Date Hierarchy into the Slicer, if you change it to the origin [Date] column, it will be correct:

v-robertq-msft_0-1607397624231.png

 

What’s more, for Date range Slicer, we usually use “Between” mode so that Date can be filtered intuitional. Here a blog explains why this issue happens some time, you can take a look:

https://blog.crossjoin.co.uk/2019/07/10/power-bi-slicers-show-values-that-do-not-exist/

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

But i need hierarchy as it will not be slicer anymore without hierarchy

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.