+ Reply to Thread
Results 1 to 5 of 5

DAX measure not calculating Average

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    611

    DAX measure not calculating Average

    Hello, (files attached )


    I have two measure one typed out in full and another using and existing mesure:

    A < CALCULATE ( AVERAGEX (dDate, SUMX (
    fTransacion,
    ROUND (
    fTransacion[UnitsSold] * RELATED ( dProduct[RetailPrice] ) * ( 1 - fTransacion[Discount] ),
    )
    ) >

    and anothre which uses and existing measure (the sumx part of above call Total Revenue)

    B < AVERAGEX(dDate,[Total Revenue]) >


    and I would expect the same result from both , but the B method returns the same figure does not have any row context
    and I get the same figure recurring, I've tried wrapping in CALCULATE, even though the tutorial I was following said not necessary

    What am doing wrong?

    RD
    Last edited by Dicken; 04-18-2022 at 01:29 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: DAX measure not calculating Average

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    611

    Re: DAX measure not calculating Average

    Sorry,
    Point taken,
    I did wonder about the file size,
    anyway having slept on it I think I've seen my error.

    Richard.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: DAX measure not calculating Average

    And for the benefit of the rest of us, what was the error and how did you fix it?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    611

    Re: DAX measure not calculating Average

    I'd been starring at it for a hours, so my eyes weren't great and I'm going to blame intellisence , it seem to want to replace an multiplication sign with an ampersand i, also , I think was placing the CALCULATE , in the wrong position.


    Richard.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 11-27-2019, 08:55 PM
  2. Prevent DAX measure from calculating subtotals
    By stefanthapper in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2018, 10:38 AM
  3. Dax Formula to Average a Max Measure
    By travis.cook21 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-20-2017, 04:19 PM
  4. Help with creating an Average measure for three columns
    By rv02 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-10-2016, 01:04 PM
  5. [SOLVED] 12 months moving average measure
    By nielf in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-26-2015, 06:52 AM
  6. [SOLVED] Powerpivot Rolling Average Calculated Measure
    By hbusche in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 07-15-2013, 06:46 PM
  7. calculating total time worked to measure SLA
    By billsoule in forum Excel General
    Replies: 4
    Last Post: 12-01-2010, 05:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1