Forum Discussion
pierre415
Helper I
9 years agoTurn Start Date & End Date columns into one column with
Hey everyone, I have 2 columns (Start Date and End date), each one specifying a different project, that I need to combine into one column containing all dates for each project. The column should ...
- Anonymous9 years ago
Hi pierre415,
You can follow below steps to use the query:
1. Click on 'fx' to add custom steps.
Previous step name:
2. Replace bold part with your column names and step name.
=Table.AddColumn(#"Changed Type", "Custom", each List.Dates([StartDate], Duration.TotalDays([EndDate]-[StartDate]), #duration(1, 0, 0, 0))) previous step name startdate enddate startdateRegards,
Xiaoxin Sheng
- Anonymous9 years ago
Hi pierre415,
Click on the arrow button and choose 'expand to new row' option:
Regards,
Xiaoxin Sheng
Jakinta
Solution Sage
4 years ago= Table.AddColumn(#"Renamed Columns", "Custom", each if [Start]=[End] then {[Start]} else List.Dates([Start], Duration.TotalDays([End]-[Start]), #duration(1, 0, 0, 0)))SangLariba1994
4 years agoRegular Visitor
Hi, how about excluding weekends?