Created
November 15, 2024 06:57
-
-
Save josy1024/5d6760f4cd1a0269df16bcb2cec47f60 to your computer and use it in GitHub Desktop.
AutoDatum Tabelle PowerBI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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