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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
adciudad
Helper II
Helper II

combine columns in direct mode

is it possible to combine columns in direct mode?

 

I need a relationship between two tables, but this relationship is composed of 3 fields

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @adciudad,

 

In DirectQuery mode, combining columns is not supported. As a workaround, you can achieve this by creating a calculated column with DAX function: CONCATENATE

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @adciudad,

 

In DirectQuery mode, combining columns is not supported. As a workaround, you can achieve this by creating a calculated column with DAX function: CONCATENATE

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft @adciudad 

This doesn't work for me with BigQuery.

I've created a composite key using CONCATENATE (same happens when I use COMBINEVALUES).

But when I create a visual that includes the composite key, I get this error:
OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression..

Can you help?

Best

 

Thanks !

LivioLanzo
Solution Sage
Solution Sage

Yes, combine them within your query, make sure Query Folding happens

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

sample.png

 

i have 3 fields, PTRABAJO, ABER, NCOMPROB, when i want join to 1 field, power bi tell that not compatible in mode DirectQuery

You cannot do TransformColumnTypes in Direct Query

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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