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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
DonRitchie
Frequent Visitor

Create a table and copying a column from a dataset in a DirectQuery local model

This seems more complicated than it should be.

 

I am connected to a local model of a dataset.  There is a table "SALES" with a column "CUSTOMER".  I select New Table under Modeling ribbon.

 

DATE = SELECTCOLUMNS(SALES,"Customers", SALES[CUSTOMER]) returns an error: The resultset of a query to external data source has exceeded the maximum allowed size of '1000000' rows.
 
DATE = SELECTCOLUMNS(SALES,"Customers", DISTINCT(SALES[CUSTOMER])) returns an error:OLE DB or ODBC error: Query (3, 40) A table of multiple values was supplied where a single value was expected. Technical Details: RootActivityId: 3f5fb32a-a5b8-4738-9237-06a50d9075dc Date (UTC): 8/8/2022 4:24:54 PM.
 
What am I doing wrong?
1 ACCEPTED SOLUTION
foucaultf
Frequent Visitor

Hi @DonRitchie ,

 

Please note: SELECTCOLUMNS function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

 

Alternatively, you can try import mode to connect data.

 

For more information, please refer to: SELECTCOLUMNS function (DAX) - DAX | Microsoft Docs

 

Best Regards

View solution in original post

4 REPLIES 4
foucaultf
Frequent Visitor

Hi @DonRitchie ,

 

Please note: SELECTCOLUMNS function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

 

Alternatively, you can try import mode to connect data.

 

For more information, please refer to: SELECTCOLUMNS function (DAX) - DAX | Microsoft Docs

 

Best Regards

How do I import a dataset I don't have access to alter?

foucaultf_0-1660268188206.png

Please select import option. Then you can use DAX without limitations.

amitchandak
Super User
Super User

@DonRitchie , Try like

DATE = summarize(SALES,"Customers", SALES[CUSTOMER])

 

My suggestion would be better get from database as import , using SQL in advance connection option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.