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
Nibz
Helper I
Helper I

Slicer last day

Hello,

 

I have a timeline slicer based on the last day, but users can select 7 days before

I would like each day the slicer is in the last day.

 

When a user enter in the report, it is on the last day, but he can change on an onther day if we wants

 

How can I handle that ?

 

 

11 REPLIES 11
Anonymous
Not applicable

@Nibz

Assume that you have a calendar table, you can create a column using the DAX below, then create a slicer using this column, and select “Yesterday” in the slicer.

Day = IF( DateTable[Date] = TODAY() - 1, "Yesterday", DateTable[Date])


Another option is to create a measure calculating the value of last day, and put the measure into a card.  After that, click on the Timeline slicer, select “Edit interactions”, choose “None” in the card visual. This way, when users select days in the timeline slicer, the card visual will not be filtered.

Yesterday Measure =CALCULATE (    SUM ( yourTable[Column] ),    FILTER ( ALL ( yourTable), RELATED ( DateTable[Day] ) = "yesterday" )

1.JPG

 

Regards,
Lydia

Capture.PNG

 

That doesn't work

Anonymous
Not applicable

@Nibz,

Please use the DAX below instead, then create a slicer using this column and set its value to 1.

Yesterday= IF( Reservation[Start] = TODAY() - 1, 1, 0)


Regards,
Lydia

I am sorry, it is still not goof for me.

 

The new column is ok but it is not possible to select the 1.

 

Capture.PNG

Anonymous
Not applicable

@Nibz,

Please make sure that your date column contains the yesterday's date, otherwise you would only get 0 in the calculated colum.

Regards,
Lydia

Yes I am sure

Anonymous
Not applicable

@Nibz,

I am not able to reproduce your issue in my Desktop, would you please share the data of the Date column for me to test?

Regards,
Lydia

Ok but how can I send you the spreadsheet ?

Anonymous
Not applicable

@Nibz

You can upload your file to OneDrive and post the shared link of the file.

Regards,
Lydia

I don't have onedrive...

Anonymous
Not applicable

@Nibz,


I send you my email address via Private message, you can share the file via Email.

Regards,
Lydia

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