Forum Discussion
SUMX Not Working
- 23 days ago
Your query is correct up until EVALUATE. The issue is that EVALUATE expects a table expression, and _Result is a scalar, so the engine cannot return it. Wrap it in either curly braces or ROW and it will work.
EVALUATE { _Result }
or
EVALUATE ROW("Result", _Result)
Once you do that you should see the Accessories 2011 total returned as a single row.
If this helped, a thumbs up and accepting the solution would be appreciated.
Thanks,
Shai Karmani
Your query is correct up until EVALUATE. The issue is that EVALUATE expects a table expression, and _Result is a scalar, so the engine cannot return it. Wrap it in either curly braces or ROW and it will work.
EVALUATE { _Result }
or
EVALUATE ROW("Result", _Result)
Once you do that you should see the Accessories 2011 total returned as a single row.
If this helped, a thumbs up and accepting the solution would be appreciated.
Thanks,
Shai Karmani