Forum Discussion
harshagraj
Post Partisan
6 years agoFiltering max week by max non blank amount and max year
Hi all, Please refer to the below data. I need a help to Prepare a KPI chart where i have to display Current week and previous weeks amount. For current year i am using this curentyear = IF(ISBL...
Anonymous
6 years agoNot applicable
harshagraj
That dax is used to create a calculate column, for a measure:
Measure = CALCULATE(MAX('Table'[Week]),FILTER(ALL('Table'),MAXX(FILTER('Table',EARLIER('Table'[ Year Id])='Table'[ Year Id]),1)),'Table'[Amount]<>BLANK())
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
harshagraj
Post Partisan
6 years agoHi Anonymous thanks for the reply. It is still showing 52 instead of 29(Max Week).