Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Row wise calculation

Hi all,

I want to calculate the average of data based on time range. Like suppose i have 3 values each  for 3 days,then i want to calculate the average of values based on a particular day.

Data is already loaded in qlikview through excel.

Please help me with this.

Thanks

12 Replies
tresB
Champion III
Champion III

Is this what you want?

PFA

Not applicable
Author

hi tresesco

There is no attachment

tresB
Champion III
Champion III

It is there.

att.png

Still one more i am oploading, if it comes visible to you.

Not applicable
Author

No attachment. Can you please send it again?

image.JPG.jpg

tresB
Champion III
Champion III

Load this data,

Load * inline [
Date, Sales
06-09-2013, 100
06-09-2013, 200
06-09-2013, 300
06-09-2013, 400
07-09-2013, 300
07-09-2013, 400
07-09-2013, 500
]
;

Then Create a Straight table with Date as dimension, expression Avg(Sales). Check the result and let know.

Not applicable
Author

considering your example, I have already loaded both fields Date and Sales.

Now I want to avg out the values based on dates and which should be independent of selection.

So if I am using chart, how I am supposed to write expression ?

ex.select avg(Sales) from ..... where date="06-09-2013 something similar to this.

tresB
Champion III
Champion III

This?

Avg ({<Date={'06-09-2013'}>} Sales)

Not applicable
Author

PFA.

In this I have already loaded fileds 'Time_Val' & 'Efficiency' from my database.

Now I want another listbox which will have average values of efficiency based on date.

image1.JPG.jpg

tresB
Champion III
Champion III

In the script something like:

Load Avg(Efficiency) as AvgEff

From <> Group By Date;

Or list box expression:

Aggr(Avg(Efficiency), Date)