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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

I keep getting this error message 'The expression refers to multiple columns. cannot be converted.'

Hi All,

 

I'm calculating a new measure and this is my calculation: total june = calculate(sum(append1,append1[month] = June)) and it keeps returning the error message 'The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value'.  

 

Could anyone tell me why this is happening and how to fix it?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Please try the formula as below:

 total june = calculate(sum(append1 [Value field]) , append1[month] = "June")

or 

total june = calculate(COUNTROWS(append1),append1[month] = "June")
 
Best Regards,
Lin
Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Please try the formula as below:

 total june = calculate(sum(append1 [Value field]) , append1[month] = "June")

or 

total june = calculate(COUNTROWS(append1),append1[month] = "June")
 
Best Regards,
Lin
Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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