Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data Load

I am loading data in qlikview

Load

Domain,

SubDomain,

Visits

from.............

where Domain<>'total' and SubDomain='total';

from attached excel sheet

but in this way i m not able to load data of Domain xyz,jkl

i want to load data with xyz and jkl is there any way to load that.

this is a sample data i have more than 100000 rows.

4 Replies
MayilVahanan

Hi,

Try this,

Test:
Load if(SubDomain = 'total',SubDomain) as DomainSubstitute, * from.............where Domain<>'total';

(or)

Test:
Load if(SubDomain = 'total',SubDomain) as DomainSubstitute, * inline
[
Domain,SubDomain,Visit
abc,abc1,10
abc,abc1,10
abc,abc1,10
abc,abc1,10
,total,50
xyz,total,20
ghj,ghj1,30
ghj,ghj1,30
ghj,ghj1,30
ghj,ghj1,30
,total,120
jkl,total,80
total,total,430
]where Domain<>'total';

Drop Field SubDomain;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

is there any way so that i can load total of SubDomain when count of Domain is =1or resitrict

total rows of sub domain where count of domain >1

above solution not working in this case.

Not applicable
Author

or there is any way so that i load all data with condition Domain<>'total'

and give expression to add visit for  total where domain is not null

or exclude where Domain is null so that i get overall total 430 as attached in excel

MayilVahanan

Hi,

     Do you want to remove Domain not equal to total and null value..am i correct?

If So,

Try this,

Test:

Load if(SubDomain = 'total',SubDomain) as DomainSubstitute, * from.............where Domain<>'total' and Len(Trim(Domain)) > 0;

or

Just want to satisfy above condition,

Use like this

Test:

Load * from.............where Domain<>'total' and Len(Trim(Domain)) > 0;

Hope it helps..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.