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
sekka_1985
Regular Visitor

previous date filter

Dear all,

 

i have a report whitch is a snapshot from the system on a weekly base.

 

so the time stamp is always eavery monday.

 

colum a: CRD

column b: Snapshot date

 

I like to compare CRD from latest date with CRD with previous date.

 

13.03.2023

06.03.2023

27.02.2023

and so on

 

I like to make a measure that calculate the latest data set with the previous one.

additinal: i like to know how to measure the latest date with the fourth lates.

 

Could you please support me the the code?

 

2 REPLIES 2
amitchandak
Super User
Super User

@sekka_1985 , try continuous day 

 

Day Intelligence - Last day, last non continuous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

 

example

Last Day Non Continuous = CALCULATE([sales],filter(ALLSELECTED('Date'),'Date'[Date] =MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

it works thanks!

 

Any idea how to code not the previous date but e.g. the fourth last date?

 

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.

Top Solution Authors