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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
UKDoc
New Member

Want date to automatically start at N-1

Hello,

Newbie to forum and BI.

 

I have a data set that gets updated daily. Post daily refresh, the current day data is always incomplete (due to in flight processing).

 

What I want to do is show 30 days of data, but start at N-1 and finish at N-31, hence always exclude the current day.

 

Many thanks in advance

 

Gavin

 

1 ACCEPTED SOLUTION
AntonioHR_
Frequent Visitor

mm then a measure like this maybe works:

CALCULATE(SUM/whatever(data); DATEDIFF(YourDateColumn;TODAY();  DAY) >= 2 && DATEDIFF(YourDateColumn;TODAY();DAY) <= 32)

View solution in original post

3 REPLIES 3
AntonioHR_
Frequent Visitor

mm then a measure like this maybe works:

CALCULATE(SUM/whatever(data); DATEDIFF(YourDateColumn;TODAY();  DAY) >= 2 && DATEDIFF(YourDateColumn;TODAY();DAY) <= 32)
AntonioHR_
Frequent Visitor

Hello,

 

If you have a Date Column you can use it as relative date filter. Select Last 30 days and turn off Including today.

I did try that previously but tried again, and discovered my ask was incorrect and was out by another day. Sorry.

 

I have a data set that gets updated daily. Post daily refresh, I don't get any of today's data, I get yesterday's data is always incomplete (due to in flight processing).

 

What I want to do is show 30 days of data, but start at N-2 and finish at N-32, hence always exclude the current day.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.