Forum Discussion
Summarise sum and Max in new table
Hi, Thanks for your reply and help.
Can you please advise how can I get the same result by using new table option (DAX) and power query as well.
I don't opt for PQ to do calculation.
- Saxon2022023 years agoHelper III
CNENFRNL, Thanks for your reply. How can I incuding the actual data column instead using measure column in summary table? Please.
Y
- Saxon2022023 years agoHelper III
Hi, I created sum of qty column in data table by using the following dax Sum Of Qty = Calculate(sum(data([qty]),
filter(data,
data[item] =earlier(data[item]) & &
data[order] =earlier(data[order])),
allexpect(data, data[item]))
ā
Now I have sum of qty row level and then I created new table by using this DAX code,
Table2 =
summarize(data),
data[item], data[code],
"Max Qty", Max(data[SumOfQty]),
"Country Code" Max(data[contry code]),
"Tax Code", Max(data[Tax Code]))
ā
attached snapshot for your reference.
I got the results (Snapshot table 2)by creating additional columns in Data Table but unable to apply the no blanks conditions in summary table for country code and tax code columns.
I want the same result (Table 2 snapshot) without maintain the additional columns in Data Table also apply non blanks conditions in summary table.