Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exsists function

Hello everyone,

In my load data model i had a fact and two dimension tables, one for Customer and other of Ok_Customer. Both of these have customer ID in them.

I use to load

Fact:

Customer_Key

Ok_Customer_Key

Metrics

Dim1:

Customer_key

other details

where exists(Customer_key)

Dim2:

Ok_Customer_Key

other details

where exists(Ok_Customer_key)


Now i want to combine dim1 and dim2 . So how can i use exists function?

15 Replies
Anonymous
Not applicable
Author

then the following Syntax should do as Long as field customer_cd is in both tables DIm1 and DIm2

left join(Dim1)

load

Ok_Customer_Key

other Details

resident Dim2

where exists(Customer_Key, OK_Customer_Key)

Not applicable
Author

What if i have already placed

Dim 1

join

Dim 2

in a qvd .

Now i want to use it in presentation layer with exists function?

Not applicable
Author

Can i use :

Load * from QVD where exists(Customer_Key) or exists(Ok_Customer_Key);??

Anonymous
Not applicable
Author

can you explain more in Detail? what do you mean with presentation layer?

normally you would provide the datamodel in an own qvw and load it binary

in surface

what Special do you want to perfrom in presentation layer?

Not applicable
Author

You are correct that i should load in data model and do binary.

But for testing purpose i was doing it like this.

I just want to know whether if i use:

Load * from QVD

where

exists(Customer_Key) or exists(Ok_Customer_Key);??

Is the above approach correct?

Anonymous
Not applicable
Author

it's okay for testing purposes (i do that as well)

Load * from QVD

where

exists(Customer_Key,Ok_Customer_Key);