Forum Discussion
ArchStanton
Power Participant
4 years agoOffset Month Calculated Column
Hi, I have a column named 'Month' which just has the dates of the 1st day of each month (see below) The MAX month as you can see is Sep 2022. I would like to create a calculated col...
- 4 years ago
Try this calculated column in the table DimDate:
Offset Month = VAR vToday = TODAY () VAR vResult = DATEDIFF ( vToday, DimDate[Date], MONTH ) + 1 RETURN vResult
DataInsights
Super User
4 years ago
Try this calculated column in the table DimDate:
Offset Month =
VAR vToday =
TODAY ()
VAR vResult =
DATEDIFF ( vToday, DimDate[Date], MONTH ) + 1
RETURN
vResult
ArchStanton
Power Participant
4 years agoPerfect, thats exactly what I need!
Many thanks!