November 13, 2012 at 12:43 pm
Hi,
I want to find the average in my text box.i have my code(conversion) in my report properties(custom code) where i calculate my years,months and days.im my database i have this suppose 1 year= 365
x y z
365 test1 Ken
for X= 365 i want to find the average. i try =avg(Fields!items.value) still give me 365.
thanks in advance.
November 13, 2012 at 11:51 pm
You have only 1 row. How are you supposed to find an average that is not 365?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
November 14, 2012 at 12:35 pm
hi Koen Verbeeck
i have multiple rows this is and example as mention above.
November 14, 2012 at 2:07 pm
uttar (11/14/2012)
hi Koen Verbeecki have multiple rows this is and example as mention above.
I only see 1 row in your example.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
November 15, 2012 at 6:47 am
uttar (11/13/2012)
Hi,I want to find the average in my text box.i have my code(conversion) in my report properties(custom code) where i calculate my years,months and days.im my database i have this suppose 1 year= 365
x y z
365 test1 Ken
for X= 365 i want to find the average. i try =avg(Fields!items.value) still give me 365.
thanks in advance.
I gave your formula =avg(Fields!items.value) and it seemed to work. Did you make sure to put this formula in a parent group? You can't use aggregates unless you also use groupings. For example, I right clicked on the column I wanted to average, and selected "add total". This adds a row that you can use to put aggregates on the whole table. It defaulted to adding a "sum" but I simply changed it to "avg" on the column and it worked.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply