Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I qucikly drew in Excel what I need to achieve in Power Query
For now I have a table looking like that:
My goal is to transform it to look like that:
How to do it in Power Query?
Solved! Go to Solution.
hi, @Anonymous
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
types = Table.TransformColumnTypes(Source,{{"start_date", type date}, {"end_date", type date}}),
comb_cols = Table.CombineColumns(types, {"start_date", "end_date"}, (x) => List.Dates(x{0}, Duration.Days(x{1} - x{0}) + 1, #duration(1, 0, 0, 0)), "dates"),
ws = Table.AddColumn(comb_cols, "ws", each "Workshop"),
expand = Table.ExpandListColumn(ws, "dates"),
pivot = Table.Pivot(Table.TransformColumnTypes(expand, {{"dates", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(expand, {{"dates", type text}}, "en-US")[dates]), "dates", "ws")
in
pivot
hi, @Anonymous
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
types = Table.TransformColumnTypes(Source,{{"start_date", type date}, {"end_date", type date}}),
comb_cols = Table.CombineColumns(types, {"start_date", "end_date"}, (x) => List.Dates(x{0}, Duration.Days(x{1} - x{0}) + 1, #duration(1, 0, 0, 0)), "dates"),
ws = Table.AddColumn(comb_cols, "ws", each "Workshop"),
expand = Table.ExpandListColumn(ws, "dates"),
pivot = Table.Pivot(Table.TransformColumnTypes(expand, {{"dates", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(expand, {{"dates", type text}}, "en-US")[dates]), "dates", "ws")
in
pivot
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |