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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Raj007
Helper III
Helper III

hi, really sorry if this very basic..summarize function

Hi, I am trying to use the summarize function but got stuck with the 3rd argument - it is not accepting the 3rd argument

 

1.trying to create a table using the summarize

Customers_GropBy_Table=SUMMARIZE(

'Sales SalesOrderDetail',
'Sales SalesOrderDetail'[CustomerID],
expression - This is where i am trying to use the measure which is already exists in the same table - but i do not see that field
when i try to put the "Sales Amount" as expression like 
'Sales SalesOrderDetail'[Sales Amount] ) - the error is sales amount specified in the summarize function was not found in the input table - i have this column in the same table
 
below is what i have in the Sales Amount measure
Sales Amount = SUM('Sales SalesOrderDetail'[OrderQty]) * SUM('Sales SalesOrderDetail'[UnitPrice])
 
 
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Raj007 You need four arguments in your case. You have to name the field for the expression so like this:

 

Customers_GropBy_Table=SUMMARIZE(

'Sales SalesOrderDetail',
'Sales SalesOrderDetail'[CustomerID],"Sales Amount",[Sales Amount])

 

SUMMARIZE function (DAX) - DAX | Microsoft Docs


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Raj007 3rd argument, in your case, should be a Constant of a name you want to give for your expression like "My Sale Amount" and thereafter 4th argument is where you will give the actual formulae/expression/measure which is Sales SalesOrderDetail'[Sales Amount]

Greg_Deckler
Super User
Super User

@Raj007 You need four arguments in your case. You have to name the field for the expression so like this:

 

Customers_GropBy_Table=SUMMARIZE(

'Sales SalesOrderDetail',
'Sales SalesOrderDetail'[CustomerID],"Sales Amount",[Sales Amount])

 

SUMMARIZE function (DAX) - DAX | Microsoft Docs


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg & Push, you both are correct, - thank you so much guys ...

SUMMARIZE(table, [groupbyconame], [name1],[expre1] )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.