Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count distinct

Hi All,

I'm new to Qlikview. I have loaded all the data, but want to create a chart that gives me the average of the Totals of Y1, Y2 and Y3.

In this sample I would need to have the sum of everything divided by 3.

Serial NumbersX1X2

Y1

1.25.1
Y15.12.6
Y14.26.5
Y26.93.3
Y22.13.7
Y27.48.4
Y35.88.6

I tried to do this +sum(x1)/count([DISTINCT][Serial Numers])  but it's not working.

Do you know how to use count discriminating the equal values?

Thank you!

Victor

1 Solution

Accepted Solutions
sunny_talwar

The expression should have worked... I am getting 10.9 with the above expression

or you can try this

=Avg(Aggr(Sum(X1), [Serial Numbers]))

View solution in original post

4 Replies
sunny_talwar

The expression should have worked... I am getting 10.9 with the above expression

or you can try this

=Avg(Aggr(Sum(X1), [Serial Numbers]))

Anil_Babu_Samineni

What are you expecting from given data?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Ah, I wasn't using the parenthesis correctly...

Thank you!!

swuehl
MVP
MVP

Right, the square brackets around TOTAL (as shown e.g. in some HELP texts) is only saying that's an optional part of the function, not that it should be printed:

What is Backus-Naur formalism? ‒ QlikView

Easy to get it wrong...