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

2 queries

i have 2 queries.

1. query select cars from allcars

2. query select cars, mobiles from allmobiles where mobiles = 'T1'

I have two table objects.

query 2 shows me no rows, but in qlikview it shows me the cars from allcars query and mobiles is null.

i don't want to show query 2 any row because output is zero rows.

why does qlikview this and how can i fix this.

10 Replies
robert_mika
Master III
Master III

Could you post your query here?

pamaxeed
Partner - Creator III
Partner - Creator III

Is there a relation between query 1 and query 2?

It seems u created the car as key field and when you are trying to display the results in a table it shows you the result of query 1 because you have defined most probably the field car as key field in your data modell.

If you could post the sample, it would much easier to help u.

Cheers,

Patric

Not applicable
Author

the example is complicated and you have to need the data as well. i can't send you the source because it is private.

the example is enought. the cars field is key, because it is used in both queries. that's correct.

but in the table of query 2 it shows me also the results of query 1 with mobiles null.

this is becaus no cars are present in query 2

pamaxeed
Partner - Creator III
Partner - Creator III

You mean in the GUI when you are talking about tables?

If yes which table are you using: Straight Table, Pivot Table, Tablebox ?

Which dimension you have in your table and which expression if you are using Straight table or pviot table?

pamaxeed
Partner - Creator III
Partner - Creator III

Not applicable
Author

straight table

pamaxeed
Partner - Creator III
Partner - Creator III

I still not understood what you wanna achieve....but...

you can create a calculated dimension like:

if(Isnull(mobile), null(), cars)

and check the supress null values, you will see that in table 2 you will have displayed cars only if mobile is different then null()....

Not applicable
Author

i think you understand me

table 1 i want to see all the cars

table 2 i want to all the cars selected in table 1 if there is also a mobile there

if not i don't want to see any result in table 2

thx for helping me!

pamaxeed
Partner - Creator III
Partner - Creator III

which dimensions you have in table 2 ?

Just do like i suggested you:

Create a calculated dimension like that:  if(Isnull(mobile), null(), cars).

Cheers,

Patric