Forum Discussion
Thulasiraman
3 years agoHelper II
Summarize error
Hi I have created a SUMMARIZE Dax which shows the error which I could not understand. Pls help Thulasiraman
FreemanZ
3 years agoSuper User
Hi Thulasiraman
are you creating a measure?
Thulasiraman
3 years agoHelper II
- FreemanZ3 years agoSuper 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 agoHelper II
- FreemanZ3 years agoSuper 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.