Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
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))
Hi,
Try this formula
let
Source = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Start Date", type date}, {"End Date", type date}}),
#"Merged Columns" = Table.CombineColumns(#"Changed Type",{"Start Date", "End Date"},each (if _{1}=null then _{0} else List.Dates(_{0},Duration.Days(_{1}-_{0}),#duration(1, 0, 0, 0))),"Date"),
#"Expanded Date" = Table.ExpandListColumn(#"Merged Columns", "Date")
in
#"Expanded Date"
@MohsinBipu, add a Custom Column with this formula and let me know if there is any problem:
List.Dates([Start date], Duration.Days([End date] - [Start date]) + 1, #duration(1, 0, 0, 0))
Expand the new column to generate rows for each date.
Remove the original "Start date" and "End date" columns if not needed.
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))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
7 | |
7 | |
6 | |
6 |