Forum Discussion

deboec's avatar
deboec
Icon for Helper I rankHelper I
5 years ago
Solved

Measure for Average displayed in Card Visual

Hello guys,   I am displaying a Matrix visual in Power BI that shows me a specific value for business units.   Business Unit Cost 1 1,000 2 2,000 3 1,500 4 2,500 Total 7,0...
  • PaulOlding's avatar
    PaulOlding
    5 years ago

    OK, you'll need to replace Table[Business Unit] with year and month columns from your date table.

     

    Avg per Month =
    AVERAGEX(
    SUMMARIZECOLUMNS(Date[Year], Date[Month],
    "@Cost", [Cost]
    ),
    [@Cost]
    )
  • PaulOlding's avatar
    PaulOlding
    5 years ago

    Ok, the SUMMARIZECOLUMNS could be a problem in that case.

     

    We can change that to a SUMMARIZE.

     

    Avg per Month =
    AVERAGEX(
    SUMMARIZE(DIM_DATE, DIM_DATE[Year], DIM_DATE[Month]),
    [Cost Measure]
    )