Forum Discussion
pamlorensampaio
2 years agoFrequent Visitor
Power Query CALENDAR request - From a date table how can I include times intervals of an hour?
Hi All, I have a calendar table ready, but I am unable to generate series or create hours invervals related to the days. Eg. This is my table: However I need to have the ...
- 2 years ago
hello, pamlorensampaio
let Source = your_table, dn = List.Buffer(List.Transform({0..23}, (x) => #duration(0, x, 0, 0))), date_hour = Table.AddColumn(Source, "Value", (x) => List.Transform(dn, (y) => x[Date and Time Start] + y)), expand = Table.ExpandListColumn(date_hour, "Value") in expand
AlienSx
2 years agoSuper User
hello, pamlorensampaio
let
Source = your_table,
dn = List.Buffer(List.Transform({0..23}, (x) => #duration(0, x, 0, 0))),
date_hour = Table.AddColumn(Source, "Value", (x) => List.Transform(dn, (y) => x[Date and Time Start] + y)),
expand = Table.ExpandListColumn(date_hour, "Value")
in
expand- pamlorensampaio2 years agoFrequent Visitor
Thank you! It created another query and worked!