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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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.

Labels (1)
4 Replies
MayilVahanan
MVP
MVP

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
MVP
MVP

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.