cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pierre Frequent Visitor
Frequent Visitor

Create a new table in power BI with SUMMARIZE function

Hello,

I try to create a new table  from another to sum a column group by item number and year.

Here is my formula :

NewTable = SUMMARIZE(LOG_DELIV_NOTE;'LOG_DELIV_NOTE[SHIPPED_ORDER_YEAR];LOG_DELIV_NOTE[ITEM_NUMBER];sum(LOG_DELIV_NOTE[M_DELIVERED_QTY])

and here is the error :

The following syntax error occurred during parsing: Invalid token, Line 1, Offset 26, 'LOG_DELIV_NOTE[SHIPPED_ORDER_YEAR];LOG_DELIV_NOTE[ITEM_NUMBER];sum(LOG_DELIV_NOTE[M_DELIVERED_QTY])
).

 

Do you know what it means and how to resolve it?

Regard

Pierre

1 ACCEPTED SOLUTION

Accepted Solutions
Sean Super Contributor
Super Contributor

Re: Create a new table in power BI with SUMMARIZE function

@pierre You need to give a name to the New Sum Column Smiley Happy

 

NewTable =
SUMMARIZE (
    LOG_DELIV_NOTE;
    LOG_DELIV_NOTE[SHIPPED_ORDER_YEAR];
    LOG_DELIV_NOTE[ITEM_NUMBER];
    "New Sum Column"; SUM ( LOG_DELIV_NOTE[M_DELIVERED_QTY] )
)

 

View solution in original post

2 REPLIES 2
Sean Super Contributor
Super Contributor

Re: Create a new table in power BI with SUMMARIZE function

@pierre You need to give a name to the New Sum Column Smiley Happy

 

NewTable =
SUMMARIZE (
    LOG_DELIV_NOTE;
    LOG_DELIV_NOTE[SHIPPED_ORDER_YEAR];
    LOG_DELIV_NOTE[ITEM_NUMBER];
    "New Sum Column"; SUM ( LOG_DELIV_NOTE[M_DELIVERED_QTY] )
)

 

View solution in original post

pierre Frequent Visitor
Frequent Visitor

Re: Create a new table in power BI with SUMMARIZE function

Thanks a lot Sean : it works!

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)