Forum Discussion
Change from a date interval to single dates
- Anonymous5 years ago
Hi Fabi1208 ,
Could you please provide some error messages to help us clarify your scenario?
I tried Jakinta 's method and it worked fine on my side.
And I think the most effective way is to use {Number.From() ..Number.From()} to get all list of dates between two dates (From and To columns)
#"Added Custom" = Table.AddColumn(#"Changed Type with Locale", "Custom", each {Number.From([From])..Number.From([To])}), #"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"), #"Changed Type1" = Table.TransformColumnTypes(#"Expanded Custom",{{"Custom", type date}}) in #"Changed Type1"Output:
But anyway ,glad to see your issue has been resolved !
Refer to:
https://www.youtube.com/watch?v=u3HLseZxSj4
https://www.thepoweruser.com/2019/07/23/fill-dates-between-dates-with-power-bi-power-query/
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Fabi1208 ,
Could you please provide some error messages to help us clarify your scenario?
I tried Jakinta 's method and it worked fine on my side.
And I think the most effective way is to use {Number.From() ..Number.From()} to get all list of dates between two dates (From and To columns)
#"Added Custom" = Table.AddColumn(#"Changed Type with Locale", "Custom", each {Number.From([From])..Number.From([To])}),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
#"Changed Type1" = Table.TransformColumnTypes(#"Expanded Custom",{{"Custom", type date}})
in
#"Changed Type1"
Output:
But anyway ,glad to see your issue has been resolved !
Refer to:
https://www.youtube.com/watch?v=u3HLseZxSj4
https://www.thepoweruser.com/2019/07/23/fill-dates-between-dates-with-power-bi-power-query/
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Fabi12085 years agoFrequent Visitor
Hi Eyelyn9,
thank you very much. This works perfectly. I am not sure why the other solution does not work for me, but this one was exaclty what I was looking for 🙂
Best regards and have a nice weekend,
Fabi