Forum Discussion

Sudharsanan's avatar
Sudharsanan
Helper III
4 years ago
Solved

Weighted Avg calculation

Hi friends,   I need help in calculating weighted avg for the below data using DAX. can someone help me?   Logic: (Sum of CY sales)/((sum of PY sales)/(sum of PY qty))*sum of Cyqty)))-1    C...
  • amitchandak's avatar
    4 years ago

    Sudharsanan , Assuming all are columns

     

    Divide(Sum(Table[CY sales]), Sumx(Table, Divide([PY sales],[PY qty]) * Table[Cyqty]) ) -1