Tagged with missing_data - Visokio Forums http://forums.visokio.com/discussions/tagged/missing_data/feed.rss Mon, 30 Oct 17 14:41:13 -0400 Tagged with missing_data - Visokio Forums en-CA Data Validation: Adding Leading Zeros http://forums.visokio.com/discussion/3190/data-validation-adding-leading-zeros Wed, 23 Nov 2016 10:45:42 -0500 aa1708 3190@/discussions Missing Data: Automatically filling in the blanks http://forums.visokio.com/discussion/2573/missing-data-automatically-filling-in-the-blanks Wed, 28 May 2014 13:58:50 -0400 paola 2573@/discussions
In the dataset below, missing values in the field [Ctr] should take their value from the previous day OR the last filled in date, for the same Campaign. A Sort operation block can be used for better transparency, to order [Date] and [Campaign].

Formula below will pick the last available value for each combination of Date/Campaign:
IF([Ctr]=null,
SUBSET_LASTNONNULL([Ctr], SUBSET2([Campaign],[Rank Date],[Campaign],[Rank Date],"=","<")),
[Ctr])


It relies on the [Date] ranking:
RANK([Date],[Date],true,false, SUBSET([Campaign]))
For each campaign ranking runs from 1 to n, with the earliest date being ranked 1st.

In the case where their is no logical ranking criteria to sort inside the data set, the record number field may be useful (see below)

image]]>