Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

requirement

Hi All,

I have a requirement

table:

Load* Inline

[Region Sales

S, 200

N,

E, 400

W,

];

Now the requirement is

In Null values, should be replaced by previous sales.(Sales for N 200 and for W 400)

How do we achieve this?

any ideas?

Regards,

Bob Tech

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If( Len(Trim(FIELD)) , ...

is just a method to check if FIELD is not NULL or empty or only contain spaces.

There are other methods to only check for NULL, like

If( IsNull(FIELD), ...

View solution in original post

5 Replies
swuehl
MVP
MVP

Maybe like

table:

Load Region, If(Len(Trim(Sales)),Sales,Previous(Sales)) as Sales

Inline

[Region, Sales

S, 200

N,

E, 400

W,

];

sinanozdemir
Specialist III
Specialist III

Something like this:

Capture.PNG

And the data model is:

Capture.PNG

Hope this helps.

satishkurra
Specialist II
Specialist II

Attached

Not applicable
Author

Thanks for your quik reply.

Yes that is exactly what I need.. and if you don't mine could you elaborate your expression as am new to qvw.

  

what exactly does len(trim(sales)?

As I know know Len('qlikview') it returns 8.

swuehl
MVP
MVP

If( Len(Trim(FIELD)) , ...

is just a method to check if FIELD is not NULL or empty or only contain spaces.

There are other methods to only check for NULL, like

If( IsNull(FIELD), ...