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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
giorgilomidze
Resolver I
Resolver I

group by new column error

I'm trying to create simple group by

 

Sum cash in = GROUPBY(Table3,Table3[Industry],Table3[Month],"net revenue" ,SUMX(CURRENTGROUP(),[Net Revenue Vat included]))

 

but it gives me an error:  The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

1 ACCEPTED SOLUTION
eniX
Helper III
Helper III

https://msdn.microsoft.com/en-us/library/mt163693.aspx

 

"Return Value:  A table with the selected columns for the groupBy_columnName arguments and the grouped by columns designated by the name arguments."

 

Group by returns a table, not a scalar value. This is exactly what this error message is saying.

View solution in original post

1 REPLY 1
eniX
Helper III
Helper III

https://msdn.microsoft.com/en-us/library/mt163693.aspx

 

"Return Value:  A table with the selected columns for the groupBy_columnName arguments and the grouped by columns designated by the name arguments."

 

Group by returns a table, not a scalar value. This is exactly what this error message is saying.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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