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: 
soniasweety
Master
Master

show all except one

Hi all

I have a data like below

CountryCapital city
United Arab EmiratesAbu Dhabi
United KingdomLondon
United States of AmericaWashington, D.C.
UruguayMontevideo

india        karnataka

india  pune

india  kolkatha

here my requirement is  like     I want to display the result      india =Karnataka  and rest all should display    [inida=pune and kolkatha  should not display ]

how to achieve this?

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

This will deserve

Load Country, [Capital city] from Table where Not WildMatch([Capacity city], 'pune', 'kolkatha');

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

9 Replies
Anil_Babu_Samineni
MVP
MVP

May be this?

Load Country, [Capital city] from Table where Country = 'india' and [Capacity city] = 'karnataka';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
OmarBenSalem
Partner - Champion II
Partner - Champion II

sthing like:

sum({<"Capital City" -= {'pune','kolkatha'}>}YourMeasure)

soniasweety
Master
Master
Author

It will give only  Karnataka data only na  ... I want other data should display 

OmarBenSalem
Partner - Champion II
Partner - Champion II

if u want to have only karnataka as ur only capital city fo india and not having to deal with the other 2; then do not import them in ur script:


I mean, sthing like:


load

Country,

"Capital city" from source where "Capital city"<>'pune'  and "Capital city"<>'kolkatha';

Anil_Babu_Samineni
MVP
MVP

This will deserve

Load Country, [Capital city] from Table where Not WildMatch([Capacity city], 'pune', 'kolkatha');

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
devarasu07
Master II
Master II

Hi,

back end method 1,

Fact:

LOAD * INLINE [

    Country, Capital city

    United Arab Emirates, Abu Dhabi

    United Kingdom, London

    United States of America, "Washington, D.C."

    Uruguay, Montevideo

    india,karnataka,

    india,pune,

    india,kolkatha,

] where not Match([Capital city],'pune','kolkatha');

Method 2;

u can also add front end dimension Country, city as calculated dim

=if(not Match([Capital city],'pune','kolkatha'),[Capital city])

Capture.JPG

Anil_Babu_Samineni
MVP
MVP

Try to close this thread, If issue got resolved by flag "Correct Answer"

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shivanisali
Partner - Contributor II
Partner - Contributor II

Try this:

LOAD * INLINE [

    country, city

    United Arab Emirates, Abu Dhabi

    United Kingdom, London

    United States of America, "Washington, D.C."

    Uruguay, Montevideo

    india        , karnataka

    india  , pune

    india, kolkatha

]

where country <>'india' or city<>'pune' and city<>'kolkatha';

soniasweety
Master
Master
Author

Thanks all all suggestions good it worked well