Results 1 to 3 of 3
  1. #1
    neo651 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    110

    DStDev Column in Query


    I have a database of prices of products. Each product has a Brand, Category, Type and Subtype. Each product has many prices and I want to calculate the standard deviation of the price of each product. I have a query that lists all products by Brand, Category, Type and Subtype. I need to add a column that calculates the standard deviation of each product (row). I want to make a simple DStDev expression, but I can't figure out a way to do that without the criteria being from a different domain than the domain in the expression, which DStDev can't do. Other ideas or workarounds anyone?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Isn't price field in that query?

    Why do you need to use the domain aggregate function? Why not StDev in textbox on report?

    What criteria?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    neo651 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    110
    No, the price field isn't in that query because that query shows only each individual product, but each product has many prices.

    I can't do it in a text box because I need to display the standard deviation of multiple products at once in a datasheet view.

    Sorry for the ambiguity, I was referring to the criteria of the DStDev statement (<expression>,<domain>, [Criteria])

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 11-12-2013, 02:19 AM
  2. Replies: 5
    Last Post: 05-01-2013, 11:39 AM
  3. Replies: 1
    Last Post: 12-08-2011, 08:03 AM
  4. Replies: 7
    Last Post: 04-27-2010, 02:47 PM
  5. Replies: 1
    Last Post: 04-15-2010, 02:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums