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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors