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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
Champion III
Champion III

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
Champion III
Champion III

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), ...