Forum Discussion
Thulasiraman
Helper II
3 years agoSummarize error
Hi I have created a SUMMARIZE Dax which shows the error which I could not understand. Pls help Thulasiraman
FreemanZ
Super User
3 years agoHi Thulasiraman
are you creating a measure?
Thulasiraman
Helper II
3 years ago- FreemanZ3 years ago
Super User
hi Thulasiraman
SUMMARIZE returns a table, and, in most cases, a table can't be used as a scalar value directly. So comes the warning.
You need either make some calculation based on that table or use the code to create a new table.
- Thulasiraman3 years ago
Helper II
- FreemanZ3 years ago
Super User
hi Thulasiraman Yes, as you see in MahyarTF 's code, SUMMARIZE is every commonly used to build intermediate virtual tables for furthe calculation, like TOPN, ADDCOLUMNS, FILTER. Any function taking table expression as argument is good to nest upon SUMMARIZE.