Forum Discussion

Josh0112's avatar
Josh0112
New Member
2 years ago
Solved

Simple DAX Query Question

I'm trying to create the following measure. I have two columns, one is a score and one is a text response. Like below   NPS     Theme 100        good 0            good -100       bad 100       ...
  • vicky_'s avatar
    2 years ago

    This DAX measure worked for me:

     

    Average of NPS when theme not included =
    var themeNotIncluded = FILTER(ALL('Table'), 'Table'[Theme] <> SELECTEDVALUE('Table'[Theme]))
    return AVERAGEX(themeNotIncluded, 'Table'[NPS])