Forum Discussion

cparker4486's avatar
cparker4486
Helper III
11 months ago
Solved

Finding Average Unit Price Across Invoices

Very new to Measures and struggling to wrap my head around this. It's probably going to be quite simple once I see the answer.   Invoice Product Quantiy Unit Price INV001 Apple 3 $5.00 ...
  • Shahid12523's avatar
    11 months ago

    Avg Unit Price Per Invoice =
    AVERAGEX(
    VALUES('Invoice Lines (2) Dim'[Invoice]),
    CALCULATE(AVERAGE('Invoice Lines (2) Dim'[Unit Price]))
    )


    This gives you the average unit price per invoice, not weighted by quantity—just like your example. Clean, accurate, and context-aware.