Average in ssrs 2008

  • 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.

  • 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

  • hi Koen Verbeeck

    i have multiple rows this is and example as mention above.

  • uttar (11/14/2012)


    hi Koen Verbeeck

    i 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

  • 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