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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
rungekan
New Member

Error using SELECTCOLUMNS when adding more than one column

Hi, 

 

I am trying to create a new table based on the existing one using SELECTCOLUMNS

 

When I run: 

 

TablaColumnasBasicas = 
SELECTCOLUMNS(
    'Manuf',
    "PipeBridge", 'Manuf'[GeneralPipeBrichColumns]
)

It works fine. 

 

However, when I add a second column: 

TablaColumnasBasicas = 
SELECTCOLUMNS(
    'Manuf',
    "Week", 'Manuf'[GeneralWeek],
    "PipeBridge", 'Manuf'[GeneralPipeBrichColumns]
)

I get the following error: 

 

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

 

Table looks as follows: 

rungekan_0-1754328634295.png

 

The table 'Manuf' is a new table I just create there are no measures or relationships yet. Column names are correct (IntelliSense
confirms them).


I tried to reduce the problem to this simplest expression, but I am stuck here.


Does anyone know Why adding a second column triggers this error?


Thanks a lot in advance!

 

1 ACCEPTED SOLUTION
FBergamaschi
Solution Sage
Solution Sage

Please make sure that, by mistake, you are not creating a measure and not a calculated table

 

I replicated your code and I did not get an error when creating a table but I did when, by mistake myself, I clicked on new measure and not new table

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

View solution in original post

2 REPLIES 2
FBergamaschi
Solution Sage
Solution Sage

Please make sure that, by mistake, you are not creating a measure and not a calculated table

 

I replicated your code and I did not get an error when creating a table but I did when, by mistake myself, I clicked on new measure and not new table

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

Thanks a lot, that was it.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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