Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Create Query with a range of dates from table

Hi, I have an Excel table in the following format that I need to manipulate in Power Query.

 

UserIDFrom DateTo DateUtilisation Rate
U12456602/07/202214/07/202250%
P67890031/05/202230/06/202210%

 

Is it possible to generate something as follows so that I get a series of dates, between the from and to date by user with the application Utilisation Rate ?

UserIDDateUtilisation Rate
U12456602/07/202250%
U12456603/07/202250%
U12456604/07/202250%

 

Would appreciate any help or advice 

 

Thanks and regards

M

 

 

 

  • Hi Anonymous ,

     

    Try this as a new custom column:

    List.Transform(
        { Number.From([Date From])..Number.From([Date To]) },
        each Date.From(_)
    )

     

    Expand the resulting nested-list column.

     

    Pete

2 Replies

  • Hi Anonymous ,

     

    Try this as a new custom column:

    List.Transform(
        { Number.From([Date From])..Number.From([Date To]) },
        each Date.From(_)
    )

     

    Expand the resulting nested-list column.

     

    Pete

    • Anonymous's avatar
      Anonymous
      Not applicable

      That's perfect BA_Pete . Thank you so much !