Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: 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
tresesco
MVP
MVP

Is this what you want?

PFA

Not applicable
Author

hi tresesco

There is no attachment

tresesco
MVP
MVP

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

tresesco
MVP
MVP

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.

tresesco
MVP
MVP

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

tresesco
MVP
MVP

In the script something like:

Load Avg(Efficiency) as AvgEff

From <> Group By Date;

Or list box expression:

Aggr(Avg(Efficiency), Date)