Forum Discussion
Hennadii
Helper IV
6 years agoCreate a table with dates based on Start / End Dates and Values on another Table
Hi there, I have a Period table with Star Date and End Date columns. Periods are not overlap each other, so each date is related to certain Period. Period Start Date End Date period 1 01/0...
- 6 years ago
Perhaps:
Calendar Table = ADDCOLUMNS( CALENDAR(DATE(2020,1,1),DATE(2020,12,31)), "Period",MAXX(FILTER('Table',[Start Date]<=[Date] && [End Date]>=[Date]),[Period]) )
Greg_Deckler
Community Champion
6 years agoPerhaps:
Calendar Table =
ADDCOLUMNS(
CALENDAR(DATE(2020,1,1),DATE(2020,12,31)),
"Period",MAXX(FILTER('Table',[Start Date]<=[Date] && [End Date]>=[Date]),[Period])
)
Hennadii
Helper IV
6 years agoGreg_Deckler ,
Is there a way to do not hardcode dates in expression?