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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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

Labels (1)
37 Replies
petter
Partner - Champion III
Partner - Champion III

Due to the interactive and SQL-specific nature of Direct Discovery, only certain QlikView objects can use MEASURE fields. List boxes, Multi boxes, Statistics boxes, and mini charts are not supported with MEASURE fields.

antoniotiman
Master III
Master III

Where You cannot Find Measures ?

View Tables don't display Measures.

petter
Partner - Champion III
Partner - Champion III

I am not sure that I understand your question... do you wonder whether Table View shows Measures?

antoniotiman
Master III
Master III

Table View don't show Measures, only Dimensions.

antoniotiman
Master III
Master III

Now You can use dimensions and mesures in chart like

Pivot Table

Dimension ID

Expression Sum(BenchMarkValue)

petter
Partner - Champion III
Partner - Champion III

Yes that is correct - here is a quote from the help file:

MEASURE fields, on the other hand, are recognized on a "meta level." MEASURE fields are not loaded in memory (they do not appear in the Table View).

alec1982
Specialist II
Specialist II
Author

thank you both for walking me through this.. really appreciate it!

I understand it now. I see the measure when trying to create a chart. but when I do benchmark as dimension on the chart and sum(BenchMarkValue) as expression I get an error where the chart says database connection failed..

any idea?

antoniotiman
Master III
Master III

Any Dimension or only BenchMark (not benchmark).

Try to create list box with dimension (e.g. ID).

alec1982
Specialist II
Specialist II
Author

I am fine with the dimensions.. and also the measure shows up when trying to create a chart. I didn't type them in I selected them from the lists..

the issue now is that the charts show " database connection failed".

petter
Partner - Champion III
Partner - Champion III

Is the database down for system maintenance?