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
smitpau
Helper I
Helper I

DATESINPERIOD Use Max and Filter out Forecast dates

Hi,

 

I'd like to use code like below, but to filter the max for a calculated column in the calendar which is already created that says "Actuals".

 

DATESINPERIOD(Calendar[Date],MAX(Calendar[Date]),-12,MONTH)
 
Any help would be appreciated.
 
Thanks
2 REPLIES 2
v-yuaj-msft
Community Support
Community Support

Hi @smitpau ,

 

Can you share some sample data and the expected result to have a clear understanding of your question please? I can do some tests for you.

You can save your files in OneDrive, Google Drive, or any other cloud sharing platforms and share the link here.

 

Best Regards,

Yuna

smitpau
Helper I
Helper I

Trying something like this but it doesn't work.

 

max(lookupvalue(('Calendar'[Date]),'Calendar'[Actual/Forecast],"Actual")),-12,MONTH))

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.