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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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