Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Guys, what is wrong with this syntax please? It doesn't generate error but it doesn't make the needed transformation either. What I need to do is to add 1 day over the dates (by transformation not by adding new column)
= Table.TransformColumns(#"Changed Type",{{"Hiring Effective Date", each _, Date.AddDays([Hiring Effective Date],1), type date}})
Thank you all, I got the reply from another community already by now, appreciate your help.
Hi @Anonymous ,
It doesn’t hurt to add a new column.
You can add a new column and then delete the original column, rename it to get the date column.
= Date.AddDays([Date],1)
More details you can refer to Date.AddDays - PowerQuery M.
Also refer to my attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You were very close! Here is the script you need. When transforming columns, the function takes a list of transformations that includes the column name to be transformed followed by the transformation to perform. Since the column name is included as the first element in the transformations list, all subsequent references to the column name should use an underscore _ instead of the actual column name.
Table.TransformColumns(Source,{{"Hiring Effective Date", each Date.AddDays(_,1), type date}})
BEFORE (my date column is named Date)
AFTER
thanks a million. I was trying to apply this transformation on 3 columns of a table, and couldn't get it right, as I was again passing the column reference instead of the underscore.
Please try this instead
= Table.TransformColumns(#"Changed Type",{{"Hiring Effective Date", each Date.AddDays([Hiring Effective Date],1), type date}})
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I'm afraid it got me an error now:
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |