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

View all the Fabric Data Days sessions on demand. View schedule

Reply
chavanr
Resolver I
Resolver I

Creating a WTD/DAY time intelligence slicer in desktop

Hi there,

 

I am creating a time intelligence slicer for YTD/MTD/WTD & DAY calculation.

Wondering if anyone could help with the WTD & DAY calculation

 

Please find below calculation for YTD & MTD.

Dynamic Date Scope =
VAR TodayDate = TODAY()
VAR YearStart = CALCULATE(STARTOFYEAR('Dates for Trends'[MMM YYYY]),YEAR('Dates for Trends'[MMM YYYY]) =YEAR(TodayDate))
VAR MonthStart = CALCULATE(STARTOFMONTH('Dates for Trends'[MMM YYYY]),YEAR('Dates for Trends'[MMM YYYY]) = YEAR(TodayDate),MONTH('Dates for Trends'[Month Year]) =MONTH(TodayDate))
VAR Result=
UNION(
ADDCOLUMNS(
CALENDAR(YearStart,TodayDate),
"Selection", "YTD"
),
ADDCOLUMNS(
CALENDAR(MonthStart,TodayDate),
"Selection","MTD"
)
)
RETURN
Result
1 ACCEPTED SOLUTION
2 REPLIES 2

thanks @amitchandak !!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors