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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.