cancel
Showing results for 
Search instead for 
Did you mean: 
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
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.