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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Afkkek
Frequent Visitor

Earliest Date on a slicer does not work

Hello,

 

I'm attempting a report with multiple years of history for a group of investments, but with one tab specific to year-to-date data.  A calendar fact table is set up in conjunction with the investment results, which are then joined on the date column (One to Many).  The year to date tab is controlled by a date slicer which is itself filtered to allow the user to select dates within the year, which seems to work fine to filter most date ranges within the period - unless the very first date (Jan 1) is selected, in which case all results end up being displayed and calculated, effectively ignoring the slicer settings.

 

In lieu of any screenshots, does this sound like a familiar problem to anyone?

 

Thanks in advance!

6 REPLIES 6
Visiblo
Frequent Visitor

I'm facing the same issue nearing 2023. Did you find a solution? 

Elorian
Resolver I
Resolver I

Hello,

Not a big help, just to confirm that I faced the same issue with the standard slicer but also with a custom time slicer from the visual repository.

I'm not sure that it is caused by the calendar boundaries or if it's a bug. Maybe putting a filter on the slicer with the wished minimal start date may help.

Kr,

Elorian.

v-alq-msft
Community Support
Community Support

Hi, @Afkkek 

 

It will cause the issue when the date range of Slicer is less than range of fact table.  So it is suggested that you can use the following function to create the calendar table, then put the date column into slicer.

 

Calendar= CALENDARAUTO()

 

Best Regards,

Allan

 

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

Afkkek
Frequent Visitor

Thanks for your response!  Perhaps I should have included screenshots and/or been more clear.

 

Note in the two screenshots below, a slicer is used to restrict the available dates available to the user.  In the first screenshot for example, it is set at Jan 14, 2019 to Dec 31, 2019 and the results are as expected.  However, in the second screenshot, if the beginning date gets set at the earliest possible value in the slicer, which is Jan 1, 2019, then for some reason it returns ALL the available dates on the fact table, effectively ignoring the slicer.  Building the slicer on both the calendar table or the fact table date column has the same effect.

 

StartingStartingFull period.JPG

I think I saw a similar issue in the past. Typically it happens when dates in calendar table are less than dates in the fact.  Check Calendar is coving boundaries.

If did not work . If possible please share a sample pbix file after removing sensitive information.Thanks.


My Recent Blog -

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

Not sure I got it, but I am using datesytd or totalytd for ytd with Date as calendar

 

Year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date]))
Last Year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date Filer],-12,MONTH)))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors