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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

SWITCH INTO SWITCH

Hello, 

 

I dont know why this is happening..

 

The error says: "The ALLSELECTED function expects a table reference expression for argument '2', but a string or numeric"

 

Capture.PNG

1 REPLY 1
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

What are you trying to achieve here?

ALLSELECT accepts only tables and columns as arguments, in your second ALLSELECT you are missing ")"

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.