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

How to plot average as a reference line? / ¿Cómo graficar promedio como linea de referencia?

Good afternoon,

I have a problem, I'm trying to draw a graph of the performance of basic daily activities of a project.

Now I have a table with information and the respective chart (attached).

SITIO            FECHA

SITIO 1        2/5/15

SITIO 2        2/5/15

SITIO 3        4/7/15

The problem is when I try to add a reference line. I need the average activities plot with the graph of performance (attached)

Attached is an example where the line noticed a reference to 2, need to come out but the average.

I tried with the following formulas and do not solve anything, it must be because I'm trying to get an average to a string of strings

AVG (SITIO)

Stay tuned, thanks.

1 Solution

Accepted Solutions
Not applicable
Author

I found the answer!

count(SITIO)/COUNT ( DISTINCt  FECHA)

I think so! jaajajajaja

View solution in original post

4 Replies
Anonymous
Not applicable
Author

What is the expression you use on your Chart ?

SITIO looks like a Dimension and if so won't work as you have found out.

Not applicable
Author

Count(SITIO)

Anonymous
Not applicable
Author

You probably need to use the Aggr() function. 

Maybe something like this :

     Avg ( Aggr ( Count(SITIO] , FECHA ) )

Not applicable
Author

I found the answer!

count(SITIO)/COUNT ( DISTINCt  FECHA)

I think so! jaajajajaja