cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryan1982
Helper I
Helper I

SUMMARIZE with column name does not work

While using SUMMERIZE DAX, I received an error message.

 

2.JPG

The dataset looks like below:

 

dataset.JPG

Can someone kindly let me know why? Thank you very much!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

SUMMARIZE returns a table, so you can create a new table. Or use that in your formula where a table is needed.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

SUMMARIZE returns a table, so you can create a new table. Or use that in your formula where a table is needed.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Table test = SUMMARIZE(Sales,Sales[Sales Date].[Year],"sales agg", sum(Sales[Sales Amount]))


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!