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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

direct discovery issue

Hi all,

I am trying to use direct discovery to load data from SQL but it is not working for me.

Currently, the script is as follow

TableA:

SQL Select

User,

City,

Country,

Sales,

Margin from table xyz;

working fine but when I add DIRECT SELECT I get error..

TableA:

DIRECT SELECT

User,

City,

Country,

Sales,

Margin from table xyz;

Any idea?

Best,

Alec

37 Replies
antoniotiman
Master III
Master III

Try

DIRECT QUERY

DIMENSION

User,

City,

Country

MEASURE

Sales,

Margin

from YourTable;

alec1982
Specialist II
Specialist II
Author

Thank you! here is the actual query but still not working

SS:

DIRECT QUERY

DIMENSION

A.Id,

A.MainTableId,

A.Customer

MEASURE

A.Sales

FROM XYZTable A INNER JOIN Table2 B on A.MainTableId = B.Id

    Where A.Customer = 'ABC';

antoniotiman
Master III
Master III

Which is Your QV version ?

alec1982
Specialist II
Specialist II
Author

11.2 sr 10

antoniotiman
Master III
Master III

Join Feature has been added to QV 11.20 SR 10 (see Release Notes).

But i didn't try this.

Regards,

Antonio

Anonymous
Not applicable

Try get the data from SQL View and make join in View.

alec1982
Specialist II
Specialist II
Author

not sure if I can do join within the view.. how can I do that? I clicked on select and able to make a select query from the sql view but that's about it..

Anonymous
Not applicable

You will find all informations in this MS article

CREATE VIEW (Transact-SQL)

alec1982
Specialist II
Specialist II
Author

thank you Dimitri but this is out of my control zone. any other solution?