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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

previous and merge cells

Hi Qlikers,

I have a problem with merged cell  and PREVIOUS. That is Excel file:

excel1.PNG

if I perform:

LOAD *,

C,

D,

if(Len(Trim(D))>0,D,Previous(D)) as D

From ...

The result in Qlik Sense is like:

EXCEL2.PNG

And the result expected is:

EXCEL3.PNG

I understand that previous command is insufficient, but I don't know which other command i can use

Thanks for your help

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Can you try this:

LOAD *,

          C,

          If(Len(Trim(D))>0, D, Peek('D')) as D

From ...

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Can you try this:

LOAD *,

          C,

          If(Len(Trim(D))>0, D, Peek('D')) as D

From ...

Not applicable
Author

Thank you Sunny,

I can also  use some imbricate previous, as this:

if(len(trim(Previous(.....

          if(len(trim(Previous(previous(......

              if(len(trim(Previous(previous(previous(.....

                    etc..