Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
woody1982
Contributor III
Contributor III

Mehrere Werte in Diagramm ausschließen

Hallo,

bestimmt eine Kleinigkeit, aber ich verzweifel gerade daran 🙂

 

Ich habe das Feld ARTIKEL und das Feld ERSTELLER. Jetzt möchte ich zählen, wieviel Artikel jeder Ersteller angelegt hat. Da bei den Erstellern aber zwei dabei sind, die nicht dazugehören, würde ich die gerne ausschließen.

Mit einem klappt es

if (ERSTELLER<>'AAAA', distinct count ARTIKEL)

wie bringe ich aber jetzt den Ersteller BBBB mit rein?

if (ERSTELLER<>'AAAA' AND Ersteller<>'BBBB', distinct count ARTIKEL) funktioniert nicht, selbe mit OR

 

Vielen Dank schon mal 🙂

 

1 Solution

Accepted Solutions
Taoufiq_Zarra

@woody1982 

if its qliksense its : "" instead ''

=count({< ERSTELLER={"*"}-{'AAAA','BBBB'}>} distinct ARTIKEL)

 Capture.PNG

 

if not can you share a sample data or your filel

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

6 Replies
Anonymous
Not applicable

QLikview ist Case sensitive

Der zweite Ersteller ist kleingeschrieben, der erste Gross! Wenn es sich um das gleiche Feld handelt, ist das das Problem.
Der Ausdruck ist auf jeden Fall korrekt (man könnte noch optisch trennen ((ERSTELLER<>'AAA') and (ERSTELLER<>'BBB'))

woody1982
Contributor III
Contributor III
Author

Hi,

daran liegt es nicht, das war nur falsch rauskopiert.

Die Formel im Diagram ist wie folgt:

 

if ((Ersteller<>'AAAA') and (Ersteller<>'BBBB'), count({$<Materialart={'xxx'}>}DISTINCT Artikel))

 

Ergebnis: AAAA  wird ausgeschlossen, BBBB ist immernoch da

Taoufiq_Zarra

I used an automatic translator!!!

one solution :

 

=count({< ERSTELLER={'*'}-{'AAAA','BBBB'}>} distinct ARTIKEL)

 

Example :

 

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
woody1982
Contributor III
Contributor III
Author

Thanks, but it doesn't work at all. Doesn't it show any readings at all

Taoufiq_Zarra

@woody1982 

if its qliksense its : "" instead ''

=count({< ERSTELLER={"*"}-{'AAAA','BBBB'}>} distinct ARTIKEL)

 Capture.PNG

 

if not can you share a sample data or your filel

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
woody1982
Contributor III
Contributor III
Author

Super! It works!

Thanks a lot!