Forum Discussion

Fabio74's avatar
Fabio74
Helper I
5 years ago
Solved

Issue with a measure using Power KPI Matrix

Hi everyone, I'm having troubles understanding how to create a dynamic measure that works in a Power KPI Matrix visualization. My table contains Persons (4), Fruits (3), quantity per day (0 or 1) an...
  • MFelix's avatar
    MFelix
    5 years ago

    Hi Fabio74 ,

     

    The measure you have written gives you the incorrect value you need to redo it to:

    Mo Avg Qty = 
    DIVIDE (
        CALCULATE (
            SUM ( 'Data Table'[Qty] ),
             ALLSELECTED(Dates)
        ),
        CALCULATE ( DISTINCTCOUNT ( Dates[EndOfMonth] ), ALLSELECTED ( Dates ) )
    )

     

    Check result attach.