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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
HadBen
Frequent Visitor

Calculate a date with filters

I'm at a loss. I've been searching for a few days but nothing works. 

I call a series of files, one for every work week, and there's a column with dates that keep changing. I want to see the difference of dates in days between these changes.

I solved this earlier by giving an n and n-1 columns and then merging, with a unique tag and the n=n-1, but this makes the large and slow database impossible to handle. I'd like to do something like this, where I calculate what the date is, but the release is one earlier release. 

Our workweeks are in this format: 2019.01, 2019.02 and so on.

Thank you. 

 

CALCULATE(MAX(table[Date])
,FILTER('Table','Table'[Unique Tag]='Table'[Unique Tag])
,FILTER('Table','Table'[workweek]='Table'[workweek]-0.01))

0 REPLIES 0

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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