cancel
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.

Reply
jeronimo2334
Helper III
Helper III

Set customized calendar slicers to the corresponding value of today's calendar data.

Hello,

I have a calendar table and I am using slicers for week, month and year.
I am trying to automatically set the selected value on the slicer to the corresponding value of the current date as of today.

Any help is appreciated.

Here are the slicers and the calendar table I am using. The table has a lot more data for years bettwen 2010-2050.

Screenshot 2023-03-09 at 2.21.46 PM.png

 

idcalDatemonthNamemonthShortNameweekOfMonthfiscalYear
45656/25/22JulyJUL12022
45666/26/22JulyJUL12022
45676/27/22JulyJUL12022
45686/28/22JulyJUL12022
45696/29/22JulyJUL12022
45706/30/22JulyJUL12022
45717/1/22JulyJUL12022
45727/2/22JulyJUL22022
45737/3/22JulyJUL22022
1 REPLY 1
amitchandak
Super User
Super User

@jeronimo2334 , As of now this is not possible. You need use workaround

 

example

 

Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1*month(Today())),"Last year Last Month" ,
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)

 

Is Today = if('Date'[Date]=TODAY(),"Today",[Date]&"")

 

Default Date Today/ This Month / This Year: https://www.youtube.com/watch?v=hfn05preQYA

 

Helpful resources

Announcements
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.

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