Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi
I have created a SUMMARIZE Dax which shows the error which I could not understand.
Pls help
Thulasiraman
Hi,
As I know the Summarized measure is a return table and not sure if you use it as a direct measure to calc the sum of column
Hi
This is Dax code for creating the table using Summarize :
Appreciate your Kudos and please mark it as a solution if it helps you
Hi @MahyarTF
Created the above TOPN dax.
Tested the Summarize portion and it creates a valid table.
But when nested in TOPN it shows the error.
Appreciate very much if you could be able to find the error I am committing.
Same issue: TOPN returns a list/table. When creating a measure, the outmost function shall be someone returning a value (or a one-row-one-column table), like SUM, MIN/MAX/AVERAGE, COUNTROWS, MINX/MAXX, etc.
try like:
measure = CALCULATE( SUM[tbl[Value]], TOPN(...))
What is your ultimate goal of this measure?
Hi @FreemanZ
Thanks for your continued support and clarifications.
I have successfully created a table using the summarize function.
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.
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.
In continuation of above, after referring some material I have created the following for TopN which is working fine: