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
Anonymous
Not applicable

Prev Day and WTD with year slicer

Hi, 

 

I have a table visual where the columns are customer counts for the Previous Day, WTD, MTD, QTD and YTD.

I'd like to add a year slicer on the page to look back over the last couple of years. MTD, QTD and YTD all work fine with the slicer as they're the built in to date functions, but I'm having trouble getting the first two to work. I could use DATEADD or similar to get it in a separate measure but I'd like to just use the one measure and have the table update dynamically with the slicer if possible.

These are my existing measures for the current year, I might be on the wrong track entirely with both of these

New Members Previous Day = 

CALCULATE([New Members], 'Member_Events'[Date] = TODAY()-1)
New Members WTD = 

var CurrentDate = LASTDATE('Date'[Date])
var DayNumberOfWeek = WEEKDAY(LASTDATE('Date'[Date]),2)

return
CALCULATE([New Members], DATESBETWEEN('Date'[Date], DATEADD(CurrentDate,-1*DayNumberOfWeek,DAY),CurrentDate))

 

 

New Members is just a count of customer numbers with a few filters applied, coming from the Member_Events table. TIA

1 REPLY 1
Ajendra
Resolver I
Resolver I

Hello,

 

Please provide some dummy data alongwith desired output. Thanks!!

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.