Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
SOLVED

How do I fill empty column values with the value from the cell directly above?

Is there a way to fill down column values based on value above empty cell? The equivalent of selecting all the cells and pressing CTRL-D in Excel on a PC.

 

Reason: I receive data reports with merged cells and want to prepare this data for Tableau. I'd prefer not to have to further manipulate this in Excel before importing to Tableau.

1 REPLY 1
Trifacta_Alumni
Alteryx Alumni (Retired)

I would recommend a combination of the Window transform and FILL function, which allows you to fill with the value in the preceding row.

 

To do this, please follow the instruction below,

  1. Add a new step
  2. type "Window" for the transformation
  3. Under "Formula," type "fill" for the fill function. Enter the column of interest as the argument.
  4. Under "Order By," enter "sourcerownumber()" if you like the order as it is.

 

Click on the following links for more details,

https://www.trifacta.com/support/articles/article/473170-faq-window-functions/