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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
prat121
Contributor III
Contributor III

functions

Hello everyone, i am very new to qlik sense.

What my question is that what if I want to load the data of a particular location, like for example of bombay, how can we achieve this.

Labels (1)
2 Solutions

Accepted Solutions
PrashantSangle

provide your sample data or script, will share you script.

you might try below code

Test:

Load * inline [

Location

bombay

goa

kolkata

];

Noconcatenate

Final:

Load * Resident Test

where location = 'bombay';

 

Drop table Test;

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

PrashantSangle

1: if we dont know if its in capital or small letters what can be done

> use wildmatch() for it like

 where wildmatch(location,'bombay');

2:  if i want to restrict the data in front end

> use set analysis like Sum({<location={'bombay'}>}Sales)

or

> create conditional dimension using if statement

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

8 Replies
PrashantSangle

like SQL, you can use where clause in here

for e.g

Load * from table

where location = 'Bombay';

 

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
prat121
Contributor III
Contributor III
Author

sorry prashant i misunderstood your answer, i tried this on the inline load i was unable to do it

PrashantSangle

provide your sample data or script, will share you script.

you might try below code

Test:

Load * inline [

Location

bombay

goa

kolkata

];

Noconcatenate

Final:

Load * Resident Test

where location = 'bombay';

 

Drop table Test;

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
prat121
Contributor III
Contributor III
Author

thanks a lot i was able to do it, as you said it actually concatenated. Also what if we dont know if its in capital or small letters what can be done

prat121
Contributor III
Contributor III
Author

Also if i want to restrict the data in front end, like if there is sales vs category and i want this for only usa or india or any such location. i have tried it with the set analysis and if condition, is there any other way for it

PrashantSangle

1: if we dont know if its in capital or small letters what can be done

> use wildmatch() for it like

 where wildmatch(location,'bombay');

2:  if i want to restrict the data in front end

> use set analysis like Sum({<location={'bombay'}>}Sales)

or

> create conditional dimension using if statement

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
prat121
Contributor III
Contributor III
Author

Hello Prashant,

Thanku for the wildmatch, i was able to achieve it. Is there any other way apart from the set analysis and if conditions. Can we achieve this by using variable output if yes how

PrashantSangle

hmm. I don't think so.

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂