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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have multiple projects whose start dates and end dates are given. I have created a column which specify how many months each project runs for. Now I want to display all the monthnames the project is running for on new rws. Ex: Lets say Project A is runing for 5 months from January to May. Then there should be 5 rows created with all columns and the column that specifies the monthname. In these five rows, each row should be dedicated to a month being displayed in the monthname column.And this hs to be done in Power query. Request anybody to help with the aswer. Thanks in advance.
Solved! Go to Solution.
Hi, @Anonymous
add a new column then expand into new rows
= Table.AddColumn(
Your_Source,
"Month_List",
each List.Distinct(
List.Transform(
{Number.From([Start_Date])..Number.From([End_Date])},
each Date.ToText(Date.From(_),"MMM-yy"))))
Stéphane
Hi, @Anonymous
add a new column then expand into new rows
= Table.AddColumn(
Your_Source,
"Month_List",
each List.Distinct(
List.Transform(
{Number.From([Start_Date])..Number.From([End_Date])},
each Date.ToText(Date.From(_),"MMM-yy"))))
Stéphane
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |