Forum Discussion
Pivot Two Dates in each day date
- 5 years ago
Anonymous
you can create a date table
Date = CALENDAR(min('Table'[Start]),max('Table'[End]))then you can use DAX to create a new table
Table 2 = GENERATE('Table',FILTER('Date','Table'[End]>='Date'[Date]&&'Table'[Start]<='Date'[Date]))I haven't tried this before, so I did test for blank for start date and end date.
It looks like test1 does not show up in the Table2 and test 2's start date will be the minimum date of date table.
please see the attachment
Anonymous , Refer if the attached file after signature can help you.
amitchandak , Thanks I took a dive in to the file you had shared with me, it has interesting result
can we do this to the source table itself,
Taking example of the data table you have, can we change the dates into list format between these two dates..
Change the above table itself to List type based on dates, For first value Start : 19-Mar-20, End: 1-Apr-20
ID | Date
1 19-Mar-20
1 20-Mar-20
1 21-Mar-20
.....
1 1-Apr-20