Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
John_SM
Contributor III
Contributor III

Fill empty rows with previous non null values not working

Hello, I know that there are a lot of topics on how to fill empty rows with peek but in my case it doesn't seem to work as it fills out only one value and not until another value is available

 

John_SM_0-1644863531411.png

 

I have used this:

FinalChurnRate:
LOAD *,
IF(Len(Trim(FinalChurnRate)) = 0, Peek(FinalChurnRate), FinalChurnRate) AS FinalChurnRateComplete
Resident ChurnRate;

I have tried with peek('FinalChurnRate') or peek(FinalChurnRate,-1), but nothing is working

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

maybe

LOAD
IF(LEN(TRIM(FinalChurnRate))=0, PEEK('FieldNew'), FinalChurnRate) as FieldNew
Resident ChurnRate;

View solution in original post

2 Replies
maxgro
MVP
MVP

maybe

LOAD
IF(LEN(TRIM(FinalChurnRate))=0, PEEK('FieldNew'), FinalChurnRate) as FieldNew
Resident ChurnRate;

John_SM
Contributor III
Contributor III
Author

Thank you very much, its working now :).

Is it also possible to fill empty rows with the median of the last 3 months?
I tried with rangefractile but again with no success.

John_SM_0-1644870961147.png

 

In this example I would need to do the median of the last 3 months (Nov, Dec, Jan) and populate the empty rows with that value