Forum Discussion
Colouring this week x axis in graph
- 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())
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
Greg_Deckler oh.. that's too bad.... okay thank you so much for your help in anyways! 🙂
- Greg_Deckler5 years agoCommunity 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()) - 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 agoCommunity Champion
Anonymous Hmm, so Calendar[Date] is used in you x-axis?
- Anonymous5 years agoNot applicable
- Greg_Deckler5 years agoCommunity Champion
Anonymous I think it was a syntax error on my part, corrected below.
Measure = VAR __Date = MAX('Table'[Date]) RETURN IF(WEEKNUM(__Date) = WEEKNUM(TODAY()) && YEAR(__Date) = YEAR(TODAY()),1,BLANK()) - Anonymous5 years agoNot applicable
- Greg_Deckler5 years agoCommunity Champion
Anonymous Unfortunately no, haven't found a way to draw vertical lines on line charts yet. The Analytics pane only allows horizontal lines. Unless...you want to create a bunch of those measures, each with a different value that is returned, so think 10 of those measures that return values from 1 to 10 each, then they would show up stacked vertically on the graph. Maybe create one for every 2000? 😞
- Greg_Deckler5 years agoCommunity Champion
Anonymous Sorry we couldn't get there completely in the end, but if this at least gets you something, mark it as an answer so others can benefit! 🙂