Skip to content

Instantly share code, notes, and snippets.

@josy1024
Created November 15, 2024 06:57
Show Gist options
  • Save josy1024/5d6760f4cd1a0269df16bcb2cec47f60 to your computer and use it in GitHub Desktop.
Save josy1024/5d6760f4cd1a0269df16bcb2cec47f60 to your computer and use it in GitHub Desktop.
AutoDatum Tabelle PowerBI
AutoDatum = CALENDARAUTO()
Jahr Y = YEAR (AutoDatum[Date])
JahrMonat = YEAR (AutoDatum[Date]) * 100 + MONTH( AutoDatum[Date])
JahrKW = YEAR (AutoDatum[Date]) * 100 + WEEKNUM(AutoDatum[Date], 21)
AutoDatumKW =
ADDCOLUMNS(
ADDCOLUMNS(
CALENDAR(MIN(AutoDatum[Date]), MAX(AutoDatum[Date])),
"Year", YEAR([Date])
),
"CalendarWeek", WEEKNUM([Date], 21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment