cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

Simple merge two columns in Direct Query

Hello guys,

 

How to merge two column (add hyphen symbol only in between), but in Direct Query mode ?

 

Thanks

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@admin_xlsior , In the direct query few column operations, are allowed

 

New column = [Col1] & "-" [Col2]

 

in case you need it to join use combinevalues : https://www.youtube.com/watch?v=rzbtXQrq43Y

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

4 REPLIES 4
Super User IV
Super User IV

@admin_xlsior , In the direct query few column operations, are allowed

 

New column = [Col1] & "-" [Col2]

 

in case you need it to join use combinevalues : https://www.youtube.com/watch?v=rzbtXQrq43Y

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Hi @amitchandak 

 

Many thanks, it works, infront by using CombineValues.

 

So just to confirm, we cannot do this kind of merge in Power Query editor, isn't it ? Since I tried that "new column" and then Column1 & "-" & Column2. After click ok then it is asking me to change storage mode to "Import"

 

Thanks,

@admin_xlsior , there is a limit to what you can do Power Query and DAX. Try a new column in DAX and see if it works. I am able to create in DAX



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Hi @amitchandak 

 

In DAX by means the "CombineValues", right ? Yes, as mentioned, it works.

I just want to confirm about the limit, that's all. Sorry to confuse you.

 

Anyway thanks,

 

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors