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
PierreCA
Resolver I
Resolver I

Data vanish or don't change when date slicer change


Hello, 

I try  to slice events by date. I use a date table. 

PierreCA_0-1718643255539.png


Cardinalite seems right. 

PierreCA_0-1718651815184.png

 


When I change the start date, the data disapear from the visual. 
When I change the end date, nothing happens. 
The other slicers work fine.

Dates are some format in both tables.

PierreCA_1-1718643494341.png

How to solve that situation?



1 ACCEPTED SOLUTION

The root of the problem the date format originating of Power Query. 

For more information on how to resolve it, see this video. 

Relationship Issues With DateTime Data Types in Power BI (youtube.com)

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @PierreCA ,
According to you, the reason for this is that the data disappears in the first place because it doesn't exist in this range. I've noticed that your calendar table has a lot of data, which will result in a lot of blank dates, which will result in a large blank date between your slicer end date and the actual end date, and it looks like the slicer isn't working. Based on this understanding, you can create a calendar with the start and end of the actual date.

Table 2 = CALENDAR(MIN('Table'[DateNotification]),MAX('Table'[DateNotification]))

Final output

vheqmsft_0-1718677814827.png

 

Best regards,
Albert He

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

AllisonKennedy
Super User
Super User

@PierreCA  Does your calendar table have a row for every single date? Are your dates DATE ONLY (no time)?

Your screenshots show 2024 and 2023 dates - do both tables contain the same dates? 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hello @AllisonKennedy  and @Anonymous , 

To buil the date reference table, I use the folllowing code: 

 

 

 

 

 

CalendrierSurveillant = 


VAR varAnneDebut = Year(MIN(Notification[dateNotification]))
VAR varAnneFin = Year(MAX(Notification[dateNotification]))

RETURN

ADDCOLUMNS(
    FILTER(
        CALENDARAUTO(),
        YEAR([Date])>=varAnneDebut &&
        YEAR([Date])<=varAnneFin
    ),
    "Année", YEAR([Date]),
   "Semestre #", IF( OR( INT(FORMAT([Date],"q"))=1  , INT(FORMAT([Date],"q"))=2),1,2), 
and so on ....)

 

 

 

 

 


The other table doesn't contain all the equivalent dates, but should be in the same year range. 

There's no time reference, @AllisonKennedy ,  and the format is the same in both table: short date.
There's no blank row in either table. 

If I understand you, @Anonymous , I should limit the date creation to the actual dates in the table Notification and use CALENDAR function instead of CALENDARAUTO.  Am I right?

But after that small change, I get the same result.  The visual disapears.

 

 

CalendrierSurveillant = 


VAR varAnneDebut = MIN(Notification[dateNotification])
VAR varAnneFin = MAX(Notification[dateNotification])


RETURN

ADDCOLUMNS(
    CALENDAR(varAnneDebut,varAnneFin),
    "Année", YEAR([Date]), ....)

 

 




The root of the problem the date format originating of Power Query. 

For more information on how to resolve it, see this video. 

Relationship Issues With DateTime Data Types in Power BI (youtube.com)

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