Forum Discussion
KPI Visual - Last week comparison
- 7 years ago
Hi Anonymous
It would probably be easier to have just the week numbers instead of the 'W' plus the number. If you have the weeks in the rows of the matrix as you show, you can use a measure like:
Measure= VAR _CurrentWeek = SELECTEDVALUE(Table1[Week]) VAR _PreviousWeek= "W" & VALUE(MID(_CurrentWeek, 2, LEN(_CurrentWeek)-1))-1 RETURN CALCULATE(SUM(Table1[realizadas]), Table1[Week]=_PreviousWeek)
Hi Anonymous
It would probably be easier to have just the week numbers instead of the 'W' plus the number. If you have the weeks in the rows of the matrix as you show, you can use a measure like:
Measure= VAR _CurrentWeek = SELECTEDVALUE(Table1[Week]) VAR _PreviousWeek= "W" & VALUE(MID(_CurrentWeek, 2, LEN(_CurrentWeek)-1))-1 RETURN CALCULATE(SUM(Table1[realizadas]), Table1[Week]=_PreviousWeek)
- Anonymous7 years agoNot applicable
Hello AlB i have a column with the yearweek too, the W51 is represented with 201851.
But it worked :D
Shows the goal as a WoW percentage
Thank you so much for the help.
- AlB7 years agoCommunity Champion
Anonymous
Cool :smileyhappy:
If it's what you were looking for, please accept the answer as solution so that it's visible for others as well.
Cheers
- Anonymous7 years agoNot applicable
Done ;)
Just, for my knowledge.
What would be the measure if i had the week without the W?
Would be the same but without the mid function?