Forum Discussion
x Axis with two dates help please
- 5 years ago
Here is a column expression that shows one way to do it. You can replace with your date column, and adjust the text as desired (or delete it).
WN and EOW = var wn = WEEKNUM('Date'[Date])var eow = 'Date'[Date] + 7 - WEEKDAY('Date'[Date])return "WN " & wn & " EOW - " & eow
Pat
Two ways you could approach this. You could create a column in your date table that concatenates the Week Number and Date start/end for that week as text, and then use that column in your visual. Or you could create 2 similar visuals (one with week # and one with dates), and use buttons/bookmarks to show/hide based on user preference.
Pat
mahoneypat Thank you for your time. Apologies but how would I do this?
''that concatenates the Week Number and Date start/end for that week as text''
- mahoneypat5 years agoMicrosoft Employee
Here is a column expression that shows one way to do it. You can replace with your date column, and adjust the text as desired (or delete it).
WN and EOW = var wn = WEEKNUM('Date'[Date])var eow = 'Date'[Date] + 7 - WEEKDAY('Date'[Date])return "WN " & wn & " EOW - " & eow
Pat- Pricey795 years agoHelper V
mahoneypat Thank you very much sir. Much appreciated.