Forum Discussion
cymorg
Resolver I
7 years agoConditional fill transformation based on preceding value
How would I transform column 1 such that blank values are replaced with the value from the preceding row, so rows 266 & 267 would contain "Use Of Fire Evacuation Chai", row 270 "2001 Manual Handling ...
Vvelarde
Community Champion
7 years agocymorg
Resolver I
7 years agoIn this scenario "In Query Editor with Fill Down Option" does nothing.
- Vvelarde7 years ago
Community Champion
Ok, Please follow this:
1. Select your column
2. Go to Tranform - Replace Values
Value to Find --- Empty
Replace with ---- null
3. Transform ---Fill Down
Ready
Regards
Victor
- cymorg7 years ago
Resolver I
Vvelarde Victor - So, Transform --- Fill Down creates a Table.FillDown M Query function call. This function acts on the specified column's null values, ignoring non-null values. Therefore, converting empty strings to null before calling this function results in the desired outcome.
It's perfectly clear now thanks to you. 10/10 Thanks.:robothappy: