cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ajsjoshua Regular Visitor
Regular Visitor

Max year is not working

Dear all,

 

I am calculating max year sales so i used the below the dax

CYSales = CALCULATE(SUM(Dispatch[InvoiceAmount]),FILTER('Calendar',MAX('Calendar'[Year])))

but its getting me the total sales value.when i select 2018 year in slicer the value is changing.Pls correct me where i am wrong.

 

Regards,

Joshua.

1 ACCEPTED SOLUTION

Accepted Solutions
ajsjoshua Regular Visitor
Regular Visitor

Re: Max year is not working

i got the solution

 

CYSales = CALCULATE(SUM(Dispatch[InvoiceAmount]),FILTER('Calendar','Calendar'[Year]=MAX('Calendar'[Year])))

1 REPLY 1
ajsjoshua Regular Visitor
Regular Visitor

Re: Max year is not working

i got the solution

 

CYSales = CALCULATE(SUM(Dispatch[InvoiceAmount]),FILTER('Calendar','Calendar'[Year]=MAX('Calendar'[Year])))