Forum Discussion
Anonymous
5 years agoNot applicable
Colouring this week x axis in graph
Hi Masters, I want to colour W38 to show which week we are like below. Is it possible? any advice would be much appreciated. thank you, CL
- 5 years ago
Anonymous Oh, wait, syntax error, missing )
Measure = VAR __Date = MAX('Table'[Date]) RETURN IF(WEEKNUM(__Date) = WEEKNUM(TODAY()) && YEAR(__Date) = YEAR(TODAY()),1,BLANK())
Greg_Deckler
Community Champion
5 years agoAnonymous Thinking:
Measure = IF(WEEKNUM(MAX('Table'[Date]))=WEEKNUM(TODAY()),1,BLANK())Anonymous
5 years agoNot applicable
- Greg_Deckler5 years ago
Community Champion
Anonymous Hah!, didn't think about that! OK, that's easy to fix:
Measure = VAR __Date = MAX('Table'[Date]) RETURN IF(WEEKNUM(__Date) = WEEKNUM(TODAY() && YEAR(__Date) = YEAR(TODAY()),1,BLANK())- Anonymous5 years agoNot applicable
Hi Greg_Deckler thanks for your reply.
I honestly have no idea of this dax..
this time, it didn't appear?
- Greg_Deckler5 years ago
Community Champion
Anonymous Oh, wait, syntax error, missing )
Measure = VAR __Date = MAX('Table'[Date]) RETURN IF(WEEKNUM(__Date) = WEEKNUM(TODAY()) && YEAR(__Date) = YEAR(TODAY()),1,BLANK())