Forum Discussion
akhaliq7
Post Prodigy
4 years agoSHow numeric values based on the latest date
I am creating a sales report and need to display numeric values in my matrix based on the latest weeks figures,now I can't use a basic filter as the old weeks have a last week of 52 but the current y...
Greg_Deckler
Community Champion
4 years agoakhaliq7 Try:
Units Measure =
VAR __Year = MAX('Table'[year])
VAR __Week = MAXX(FILTER('Table',[year]=__Year),[weeknum])
RETURN
MAXX(FILTER('Table',[year] = __Year && [weeknum] = __Week),[units])