Forum Discussion

P0WER_BI's avatar
P0WER_BI
Frequent Visitor
4 years ago
Solved

Weighted Average in a Hierarchy Visualized by a Matrix

I am trying to create a measure to show the weighted average at multiple levels of a hiearchy.  I will be presenting this data in a matrix visualization in Power BI.  I will provide sample data to il...
  • AlexisOlson's avatar
    4 years ago

    Try this:

    Avg =
    DIVIDE (
        SUMX ( Table1, Table1[Unit Price] * Table1[Qty Sold] ),
        SUMX ( Table1, Table1[Qty Sold] )
    )