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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors