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

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

14 Replies
Not applicable
Author

got nobody any ideas how to solve this problem?

MarcoWedel

Hallo Alex,

to confirm that your whole Artikel column indeed is interpreted as the same numeric value and thus all the field values of the other fields are corresponding to this single value of the Artikel field (this information was missing in the english translation of your initial post), can you please check the data type of the Artikel field e.g. like this:

QlikCommunity_Thread_109379_Pic1_.JPG.jpg

QlikCommunity_Thread_109379_Pic2_.JPG.jpg

From your description your result might look like the first picture, except for the only filed value being 00001 instead of 01. The point is that the field is numeric so the proposed Text(Artikel) solution should work.

Could you please check the same with the Load '-' & text(ARITKEL) & '-' as ARITKEL test?


thanks


Gruß


Marco

Not applicable
Author

hmm i thinkt now it works if i creat a view in the the sql db and import from a view with "select * from V_VERKAUF" and do then i got the result vom picture 2 from the original table i got the same "error".

Load '-' & text(ARITKEL) & '-' as ARITKEL

MarcoWedel

Then you solved your problem, nice.

Please go ahead and close the thread if you feel like there are no further questions.

regards

Marco

Not applicable
Author

thanks guys for y support!