Forum Discussion

SivaReddy's avatar
SivaReddy
Frequent Visitor
5 years ago
Solved

calculatetable measure is throwing error like multiple columns cannot be converted to scalar value

 I have created a table in sql server and loaded into powerbi. the table is like

 

enoenamedeptnosalary
1Raja15000
2kirshore26000
3Naveen35500
4Santosh28000
5Praveen110000

 

I want output like below using calculatetable measure(required data having deptno=1).

 

enoenamedeptnosalary
1Raja15000
5Praveen110000

 

the below measure is throwing error 

CalculateTable = CALCULATETABLE(Department_Groupfunction,Department_Groupfunction[deptno]=1)
 
error
The expression refers to multiple columns. Multiple columns can't be converted to a scalar value
 
could you please suggest how to fix this.

5 Replies