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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Error message The expression refers to multiple columns. Multiple columns cannot be converted to a s

Hi,

 

I got error an message when i would like to group by customer key and summing the revenue. 

The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

Demo table = SUMMARIZE(
    ALLSELECTED(ESD),
    ESD[Customer ke y],
    "Revenue",SUM(ESD[Net turnover (EUR)])

 

How can i solve it ? 
 
Thank you.
 
Amy 
5 REPLIES 5
az38
Community Champion
Community Champion

@Anonymous 

are you sure you create a table and not a measure?

I also see you have no closing parenthesys ")" for statement

and also I see an excess space here

[Customer ke y]

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi, 

 

I want to create the new measure to sum the net turnover by customer key group. 

 

 

 

Demo = 
SUMMARIZE(
    ALLSELECTED(ESD),
    ESD[Customer key],
    "Revenue",SUM(ESD[Net turnover (EUR)])
)

 

Capture.JPG

AlB
Community Champion
Community Champion

Hi @Anonymous 

Your measure is returning a table now. That is not allowed and from what I understand it is not what you need either. You probably need a SUMX on what you currently have or something along those lines.

That use of summarize is not recommended. Better to use SUMMARIZE only for generating the base table, not for adding columns. You can use ADDCOLUMNS for that or SUMMARIZECOLUMNS

https://dax.guide/summarize/

https://www.sqlbi.com/articles/best-practices-using-summarize-and-addcolumns/

https://dax.guide/summarizecolumns/

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

az38
Community Champion
Community Champion

@Anonymous 

what is [Net Turnover]? is it a measure or column?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 

 

Hi, it's a column.

 
 
 
 

Capture.JPG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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