Forum Discussion
Anonymous
7 years agoNot applicable
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.
- Anonymous7 years ago
i got the solution
CYSales = CALCULATE(SUM(Dispatch[InvoiceAmount]),FILTER('Calendar','Calendar'[Year]=MAX('Calendar'[Year])))
1 Reply
- AnonymousNot applicable
i got the solution
CYSales = CALCULATE(SUM(Dispatch[InvoiceAmount]),FILTER('Calendar','Calendar'[Year]=MAX('Calendar'[Year])))