Forum Discussion

Dataman9000's avatar
Dataman9000
Regular Visitor
2 years ago

define max date from table

Hi,

 

I need to create a calendar; and from which I need to define a starting date using M.  

 

=Date.AddMonths(Date.EndOfMonth(Date.From(DateTimeZone.FixedUtcNow())),-2)

 

How can I change this code to pull from my DAX measure below?

 

CALCULATE (
MAX ( 'DATA'[EOMONTH] ),
'DATA'[Type] = "Actual",
REMOVEFILTERS ( 'Date' )
)

 

Thanks!

1 Reply