Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9041

WEBi Average issue

$
0
0

Hi Everyone,

 

 

First time poster, long time reader!!!!

 

I am working on an issue with Webi averages that has me cursing up a storm. I just don't get what Webi is doing sometimes when it comes to calcuations especially when it comes to averages.

 

Here is my issue.

 

I have 2 years worth of data in the following format

 

YearMonth of YearValue
201315
201326
201332
201341
201356
201363
201378
201389
201392
2013103
2013114
2013126
201417
201426
201435
201443
201452
20146

1

 

I am trying to get the average for 2013 for up to June in a single cell, I have an expression as follows

 

Average(Value) where Year =2013 and Month of Year <=6

 

When I do this I get the sum of values in 2013 up to June, however when I write the following expression

 

Average(Value) where Year =2013, I actually get the correct average but its for the entire year

 

If I write Average(Value) where Year =2013 and Month of Year =6, then I actually get the single value of 3 which makes sence.

 

I am at a lost, the only thing I can think of is to add another query which will exclude the remainder of the year, it just seems so ugly to do that. I want to belive there is a way to solve this using an expression.

 

Thanks for all your help.

 

Tom


Viewing all articles
Browse latest Browse all 9041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>