March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I've got a whole sequence of steps in Power Query and already a bunch of pivot tables connected to the data. I found out that the time input is wrong and believes it's in my current time zone (but it's not). So I have to add + 7 hours. I've done that successfully by adding a column NewColumn = [create_user_date] + #duration(0,7,0,0) , however I would like to replace the current colum instead of adding a new one.
I've learned about Table.TranformColumns, but I can't figure out the actual syntax to do this with my current DateTime.
Any suggestions?
Solved! Go to Solution.
You can add this step.
Replace text in "red font" with your previous step's name
= Table.TransformColumns(#"Changed Type",{"create_user_date", each _ + #duration(0,7,0,0)})
You can add this step.
Replace text in "red font" with your previous step's name
= Table.TransformColumns(#"Changed Type",{"create_user_date", each _ + #duration(0,7,0,0)})
Hi,
I can't get this to work.. It's asking for a comma after the #duration...
Any tips?
//Sigrid
Okay it's working! Thanks.
What's the underscore for in = Table.TransformColumns(#"Source", {"user_create_date", each _ + #duration(0,7,0,0)})?
_ is the value that is passed as parameter to the function.
In Table.TransformColumns function it is the intersection of current row and Column you have chosen
Another example, If you simply create a new custom column as follows...it will return you the current row as records
= _
This is weird syntax, but why not. Thanks!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.