Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL Datenausgabe in QlikView [DE]

Hi,

ich habe ein kleines Problem und zwar greife ich mit QlikView auf eine MSSQL 2012 Datenbank zu dort gibt es eine Tabelle "Verkauf" mit 3 Spalten eine Spalte davon mit "ARTIKEL" (varchar(40)) Inhalt der ganzen Tabelle:

z.B.:

ARITKEL     MENGE     PREIS

01               2               4,39

001             5               3,94

00001         1                5,2

Daten werden abgerufen über ODBC per "SQL SELECT * FROM VERKAUF;"

Nun zum eigentlich Problem:

In der QlikView - Auswertung gibt es eine Listbox wo man Artikel auswählen kann dort finde ich aber weder 01, 001 als Werte sondern nur 00001 unter diese sind auch alle Verkäufe zusammengefasst von 01 und 001 wie kann ich es verhindert das QlilkView diese Artikel zusammenfasst weil es ja eigentlich 3 verschiedene sind?

Danke schon mal

Alex

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Only as test,

try this and let me know please

Load '-' & text(ARITKEL) & '-' as ARITKEL,     MENGE ,    PREIS;

SQL SELECT ARITKEL,     MENGE,     PREIS FROM VERKAUF

View solution in original post

14 Replies
Not applicable
Author

Please post in english

alexandros17
Partner - Champion III
Partner - Champion III

"SQL SELECT * FROM VERKAUF;"

Not applicable
Author

I got SQL Data in a MSSQL 2012 Server Table like:

ARITKEL     MENGE     PREIS

01               2               4,39

001             5               3,94

00001         1                5,2

Now i selected that data with "SQL SELECT * FROM VERKAUF;"! The Problem is my Listbox in QlikView show me no Artikel with the 01, 001 only 00001!

alexandros17
Partner - Champion III
Partner - Champion III

Try this

Load text(ARITKEL) as ARITKEL,     MENGE ,    PREIS;

SQL SELECT * FROM VERKAUF

Not applicable
Author

still the same problem

alexandros17
Partner - Champion III
Partner - Champion III

My last try ... No more ideas ...

Load text(ARITKEL) as ARITKEL,     MENGE ,    PREIS;

SQL SELECT Cast(ARITKEL as varchar(3)),     MENGE,     PREIS FROM VERKAUF

Not applicable
Author

still the same problem

and the "ARTIKEL" column ist already defined as varchar and primary in the SQL Table

alexandros17
Partner - Champion III
Partner - Champion III

Only as test,

try this and let me know please

Load '-' & text(ARITKEL) & '-' as ARITKEL,     MENGE ,    PREIS;

SQL SELECT ARITKEL,     MENGE,     PREIS FROM VERKAUF

Not applicable
Author

sry still the same problem