Forum Discussion
rsbin
6 years agoCommunity Champion
Create Column as List of Values using M
Hello, Am new to Power Query so looking for a guiding hand. I have a table with Contract Start Date and Contract End Date. I have converted these dates to text values YYYYMM (but not sure if this...
- 6 years ago
Hi rsbin
you're nearly there!
You have to make an adjustment in the red area:
= Table.AddColumn(Source, "ListofDates", each Date.DatesBetween([Contract Start Date],[Contract Expiration Date],"Month"))
That has to match the name of the query/function where you've posted my code. "." will not be allowed in query names, so it must be something else 🙂
ImkeF
6 years agoCommunity Champion
Hi rsbin
you're nearly there!
You have to make an adjustment in the red area:
= Table.AddColumn(Source, "ListofDates", each Date.DatesBetween([Contract Start Date],[Contract Expiration Date],"Month"))
That has to match the name of the query/function where you've posted my code. "." will not be allowed in query names, so it must be something else 🙂