Forum Discussion

AviBI's avatar
AviBI
Frequent Visitor
6 years ago
Solved

Quite frustrated - need help

Hi all    Trying to filter to Last week's items as follows:   Period Lookup Table Filters Items Data Table - One to Many   LastWkItems = Calculate ([TotalItems] , Period[WeekofYr] =31 , Period...
  • Anonymous's avatar
    Anonymous
    6 years ago

     

    // Of course the one with hard-coded values works.
    // I have already explained it in my first post.
    // If you read it carefully, you'd know what to do...
    
    [LastWeekItems] =
    var __lastWeek = [LastWk]
    return
    	Calculate (
    		[TotalItems],
    		WeekofYr = __lastWeek,
    		Year = 2020 // this should not be hard-coded
    	)