Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Apply latest_week filter on visual

Hi ,

 

I've  current_week vs previous week user performance metric and I want to set the view to show the latest week result default from the filter

 

here is my sample dataset

 

I've created the below measure to calculate the previous week call volume 

 

PW_Calls = CALCULATE(SUM(Sheet1[Calls]),
FILTER(ALL(Sheet1),
Sheet1[Year]=SELECTEDVALUE(Sheet1[Year])&&
Sheet1[User ID]=SELECTEDVALUE(Sheet1[User ID])&&
Sheet1[Week_Number]=SELECTEDVALUE(Sheet1[Week_Number]) -1))

I am struggling to apply the week filter to show the latest week results default every time

 

Any help would be appreciated.

 

 

 

 

1 Reply