Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ReLoading The Data Based On Condition

Hi ,

I am facing the problem to retrieve the Data based on the condition on a field in editscript.

I have loaded one XL file into Qlikview (I have also attaching the Xl file With this post)

Test:

AB
NoRead1
High2
High3
Normal4
NoRead5
Normal6
High7
8
High9
10

Here I need Like this,

NoRead=NoReads

!NoRead=GoodReads

NullValues=MissingReads

For This I write the query like this

In the DataBase:

select CASE A WHEN 'NoRead' THEN 'NOReads' ELSE CASE  WHEN A<>'NoRead' Then 'GoodReads' Else 'MissingReads'    End END AS ReadType from Test

And This is working well.

In The QlikView EditScript:

if(A='NoRead','NoReads',if(A<>'No Read','GoodReads','MissingReads'))as ReadType But This Is not showing the result exactly what i want.

Can you Reply me With the solution for this Problem.

Thanks....

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello,

First of all, I'll check for null/missing/empty values:

If(Len(Trim(A)) = 0, 'MissingReads', If(A = 'NoRead', 'NoReads', 'GoodReads')) AS ReadType

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello,

First of all, I'll check for null/missing/empty values:

If(Len(Trim(A)) = 0, 'MissingReads', If(A = 'NoRead', 'NoReads', 'GoodReads')) AS ReadType

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Not applicable
Author

Hi Miguel,

Thanks for your Reply

Yes Its really helps me.

Thanks