Forum Discussion
Replace every row with the first row value
- 4 years ago
Hi Applicable88 ,
Create a new custom column, and enter this as the calculation:
previousStepName{0}[Custom]This will fill the column with the first value in the [Custom] column.
Like this:
Pete
- 4 years ago
If you prefer, you could transform the existing column instead of creating a new one. Try a conversion to date returning null for values that don't work and then fill down.
= Table.FillDown( Table.TransformColumns( #"Previous Step Name Goes Here", {{"Custom", each try Date.FromText(_) otherwise null, type date}} ), {"Custom"} )
Hi Applicable88 ,
Create a new custom column, and enter this as the calculation:
previousStepName{0}[Custom]
This will fill the column with the first value in the [Custom] column.
Like this:
Pete
Hello Pete,
it seems like your answer is the solution to my problem.
But unfortunate it doesn't work in my case.
I need a new column where every row takes the value from first row column month.
Could you pls have a look at it and advice?
- BA_Pete3 years ago
Super User
Hi Anonymous ,
For your scenario, it should just be:
previousStepName{0}[Month]Where 'previousStepName' is the name of whatever Power Query step this linecomes after in the process order.
Pete