Forum Discussion

Lorenz33's avatar
Lorenz33
Helper IV
6 years ago
Solved

DAX Formula Compatibility Limitation

When using DirectQuery mode, aggregation functions like COUNT, SUM, etc are supported in measure only. For more details, please see: DAX Formula Compatibility in DirectQuery Mode. I need to use a SUM...
  • v-gizhi-msft's avatar
    v-gizhi-msft
    6 years ago

    Hi,

     

    Please try this:

    ratio = SUM('Table'[value])/CALCULATE(SUM('Table'[value]),ALLSELECTED(Table))

     

    Best Regards,

    Giotto Zhi