Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Unpivot data in Power Query based on Date range

Dear Experts, In my table I have StartDate and EndDate column.  Based on this, Each row will be created for this date range.  Please see the input and output table.   Can you please help?   ...
  • ahadkarimi's avatar
    ahadkarimi
    2 years ago

    Hey dufoq3, you’re right. The final version will be:

    List.Dates([Start date], Duration.Days([End date] - [Start date]), #duration(1, 0, 0, 0))