ALTERYX INSPIRE | Join us this May for for a multi-day virtual analytics + data science experience like no other! Register Now

Alteryx Designer Discussions

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

Pull down data, condition of same country and fill down dates.

7 - Meteor

Hi, here goes my new problem. 


I have data of interest rates for 3 countries, but this data is presented only by the date it was changed. My other column is every single day from 1990 to this week. I was able to combine both data and order by dates and country, but I want to "fill down" the interest rates until it reaches a new change, being careful to leave empty the cells when it changes country (not all countries started tracking their rates in 1980, and they all have different start dates).  


I'm attaching an excel: tab 1 is the interest rates, tab 2 the dates column and tab 3 is what I want it to look like. On Excel I was using this formula example: =IF(ISBLANK(C10579),D10578,C10579) ... But how do I avoid the program from pulling the data of the previous country to the next one? I have a feeling there is a conditional formula I'm missing... 




15 - Aurora

Hey @regisb


You need to use the Multirow formula tool here:


It will be something like


If !IsnUll([Interest rate]) then [Interest rate] Else [Row-1:Interest rate] Endif


Using groupby on Country

14 - Magnetar


Take a look at the Multi-Row Formula tool.


Here's a quick example formula:

IF ISEMPTY([Interest Rate]) THEN [Row-1:PulledDownData] ELSE [Interest Rate] ENDIF

Here's a screenshot of it, note that I grouped by Country to make sure the data would not cross over to another country



16 - Nebula
16 - Nebula

You can do this using a multirow formula tool grouped by country with and expression like 

Iif(isnull([Interest Rate]),[Row-1:Interest Rate],[Interest Rate])
13 - Pulsar

Here is the sample workflow for your case.  Hope this is helpful. 



7 - Meteor

Seems to work!


One question, some of these interest rates are 0 (i.e. Euro), and Alteryx+Tableau will be confusing with those "0" that are before the actual tracking began. Is there a way to make the "0" before the start tracking date as empty/null? 


Ex: For Belgium, I want the values before 12/18/1998 (date they started tracking) to be empty/null... For Brazil the same applies for values before 3/5/1999, etc? 

15 - Aurora



Set the "Values that don't exist" to NULL

7 - Meteor


Very nice solution, thank you. I have a quick question how can you do same thing if you having 1,000 columns where you need to perform same action.


Thank you