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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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