Forum Discussion

amhiggins's avatar
amhiggins
Frequent Visitor
5 years ago
Solved

Show Individual Performance vs. Team Average with Slicer

Hello Community!   Overview: I am trying to show the average count of activities completed by person by hour for an entire team versus a selected individual on the same plot using a slicer.    My...
  • MFelix's avatar
    MFelix
    5 years ago

    Hi amhiggins ,

     

    Try the following code:

     

    Avg by Person by Hour =
    AVERAGEX (
        CALCULATETABLE (
            SUMMARIZE (
                'Table',
                'Table'[Actual End By hour],
                'Table'[Owner],
                "@IDCount", DISTINCTCOUNT ( 'Table'[ID] )
            ),
            ALL ( 'Table'[Owner] )
        ),
        [@IDCount]
    )