Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Warum über Schlüsselfeld keine Berechnung durchführen

Hallo zusammen,

ich habe eine kurze Verständnisfrage. Warum sollte man über eine Schlüsselfeld keine Auswertung machen?

VIele Grüße...

1 Reply
swuehl
MVP
MVP

Hallo Thomas,

das hängt von der Berechnung ab.

Ein COUNT(DISTINCT KeyField) ist z.B. kein Problem. Ein COUNT(KeyField) hingegen schon, hier weiss QV nicht, über welche Tabelle die Funktion ausgeführt werden soll. Sieh dazu auch Henrics Erklärung:

Count or Count distinct?

Another trap I have seen people fall into, is when a key field is used as parameter in the Count() function. If the distinct clause is used, there is no problem: The number of distinct values is well defined also for key fields. But if you omit the distinct clause, the number is not well defined: In which data table should QlikView count the number of records? There are several possible source tables, since the field is a key.