Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
vincentakatoh
Helper IV
Helper IV

Summarize DAX

Hi, 

Trying to create a new measure, TotalCount_Sum=39+2= 41. 

 

Me a DAX dummy, can advise what is wrong with below DAX?

TotalCount_Sum = SUMMARIZE(data2
	,Data2[3Station]
	,Data2[TotalCount],sum(Data2[TotalCount])
)

2017-11-06 23_04_44-Untitled - Power BI Desktop.jpg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vincentakatoh,

 

SUMMARIZE function will return a table as the result, it is impossible to store these result in calculated column or measure.

You need to summary these records and return the result.

 

For example:

TotalCount_Sum =
SUMX (
    SUMMARIZE (
        Data2,
        Data2[3Station],
        Data2[TotalCount],
        "TotalCount", SUM ( Data2[FailCount] )
    ),
    [TotalCount]
)

 

Reference:

SUMMARIZE Function (DAX)

Returns a summary table for the requested totals over a set of groups.

 

Notice: if your data contains any privacy data, please do mask sensitive data before sharing.

 

Regards,

Xiaoxin Sheng

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Im having problems to sum abs error values.

As you can see 2928 is wrong the correct accumulated sum should be 23.968

 

Capturar.PNG

Helen226
New Member

Some might want one that features a detachable net blog post. Top rated Ping Pong Robot the first time you're mosting likely to do.

Greg_Deckler
Community Champion
Community Champion

You need a name for your column as parameter 4, just enclose it in double quotes.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler

Can provide example, tried below but no success? Do I need to add as a Column or Measure?

 

 

TotalCount_Sum = SUMMARIZE(data2
	,Data2[3Station]
	,Data2[TotalCount]
,"TotalCount", sum(Data2[FailCount])
)

 

I have this working for me:

 

Table = SUMMARIZE(Cars,Cars[Asset],Cars[Damage],"Sum",SUM(Cars[Column]))

Obviously different data set, but same thing.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Seems like what you have is correct, are you getting an error?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

hi @Greg_Deckler,

Yes, Error msg "the expression refers to multiple columns. Multiple columns cannot be converted to a scalar value". 

 

Also attached my sample file. If possible, appreciate if you can correct the dax and upload in link. 

 

https://1drv.ms/u/s!ArjVwEnHONXNggIZbMfBJHYsQK42

Anonymous
Not applicable

Hi @vincentakatoh,

 

SUMMARIZE function will return a table as the result, it is impossible to store these result in calculated column or measure.

You need to summary these records and return the result.

 

For example:

TotalCount_Sum =
SUMX (
    SUMMARIZE (
        Data2,
        Data2[3Station],
        Data2[TotalCount],
        "TotalCount", SUM ( Data2[FailCount] )
    ),
    [TotalCount]
)

 

Reference:

SUMMARIZE Function (DAX)

Returns a summary table for the requested totals over a set of groups.

 

Notice: if your data contains any privacy data, please do mask sensitive data before sharing.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors