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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.