Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

DAX help

I have placed a card in the dashboard where using average value. The value in the card displaying good when filetered on single value of year ,however it's showing different value when selecting 'ALL...
  • v-kkf-msft's avatar
    v-kkf-msft
    5 years ago

    Hi Anonymous ,

     

    Try the following formula:

     

    Measure = 
    IF(
        ISFILTERED('Table'[Year]),
        [Average],
        AVERAGEX(
            ALLSELECTED('Table'[Year]),
            [Average]
        )
    )

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.