Forum Discussion

anil's avatar
anil
Icon for Helper III rankHelper III
8 years ago
Solved

Category Segmentation (Range Buckets) using direct query

My dataset has ID's with multiple orders. I am trying to calculate average discount across orders per ID. And creating a column to bucket the averages of ID's.    Bucket = Switch ( True(), ...
  • v-frfei-msft's avatar
    8 years ago

    Hi anil,

     

    This is 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. You can switch the table from direct query to import to work around.

     

    Regards,

    Frank