Forum Discussion

Sankzpower's avatar
Sankzpower
Icon for Helper I rankHelper I
6 years ago
Solved

Multiply 2 columns row then divide by count grouped

Hi guys   Hope you can help me out here. Sure, this is simple but again cannot execute cleanly on power bi.    I have sample two tables both are connected via category. Each category has average ...
  • v-juanli-msft's avatar
    v-juanli-msft
    6 years ago

    Hi Sankzpower 

    You data is not like the expected result picture.

    Use measure below, result is

    Measure 2 = DIVIDE(
        SUM ( Sheet1[Sleeps] )
            * SUM ( Sheet2[Avg.use] ),CALCULATE(DISTINCTCOUNT(Sheet1[Account]),ALLEXCEPT(Sheet1,Sheet1[Category],Sheet1[Site])))

     

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.