Forum Discussion

AnjaliChettiar's avatar
AnjaliChettiar
New Member
7 months ago
Solved

Need Help Averaging a Measure Derived from Two Other Measures

Hi All, I am working on a Power BI report where I need to calculate the average of a derived measure. This derived measure is calculated using two other base measures. Here is the structure of my...
  • pankajnamekar25's avatar
    7 months ago

    Hello AnjaliChettiar 

     

    Try with AverageX

    Avg Derived Measure =
    AVERAGEX (
    VALUES ( Dealer[Dealer Name] ),
    [Derived Measure]
    )

     


    If my response helped you, please consider clicking
    Accept as Solution and giving it a Like 👍 – it helps others in the community too.


    Thanks,


    Connect with me on:

    LinkedIn

     

  • FBergamaschi's avatar
    7 months ago

    Hi AnjaliChettiar ,

    pankajnamekar25 offered you a solution with AVERAGEX, that works but it does not take into account blanks in the average calculation. if that is fine w/you, that is your solution. Otherwise if you need to take into account of blanks, consider this

     

    DIVIDE ( 
               SUMX ( VALUES ( Dealer[Dealer Name] ), [Derived Measure] ),
               COUNTROWS ( VALUES ( Dealer[Dealer Name] ) )
    )

     

    If this helped, please consider giving kudos and mark as a solution

    @me in replies or I'll lose your thread

    Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

    Consider voting this Power BI idea

    Francesco Bergamaschi

    MBA, M.Eng, M.Econ, Professor of BI