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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
gusdahu
Helper IV
Helper IV

Concatenation Question

Hellow Power BI community,

 

I currently have a direct link from PeopleSoft to my Power BI. How can I concatenate two columns using the measurement functionality?

 

Regards,

Gus Dahu

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

@gusdahu

To get the measure as requested, you may use SELECTEDVALUE Function:

Measure :=
CONCATENATE (
SELECTEDVALUE ( 'Table'[Column1] ),
SELECTEDVALUE ( 'Table'[Column2] )
)


Regards,
Cherie

Community Support Team _ Cherie Chen
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

9 REPLIES 9
v-cherch-msft
Employee
Employee

@gusdahu

To get the measure as requested, you may use SELECTEDVALUE Function:

Measure :=
CONCATENATE (
SELECTEDVALUE ( 'Table'[Column1] ),
SELECTEDVALUE ( 'Table'[Column2] )
)


Regards,
Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Shantanu00007
Helper I
Helper I

Create a new column -> newcolumn = [column1]&[column2]

Shantanu0007,

 

I aprpeciate your quick response to my question. Unfortunately your solution did not work. Do you have any other alternatives?

 

Regards,

Gus Dahu

Forgive the possible patronising question, but did you substitute [column1] and [column2] for the actual names of your own columns in the supplied suggestion:

 

newcolumn = [column1]&[column2]

If you did, perhaps you could supply a screenshot of what happens when you try it? I'm wondering if it could be that one of the columns needs to be a different data type to make the concatenation work.

Hi Gazzer,

 

I did input the actual names into the measurement formula. The measurement was created, however when I attempt to add the measurement as a column in the table, I receive a rejection from the visual itself telling me that the information cannot be displayed.

 

Regards,

Gus Dahu

Could you please give a snapshot of the requirement and desired output ?

Hi Shantanu00007,

 

Basically I have a "PO_ID" column and a "Business_Unit_PO" column. I would like to concatenate the two to create a unique identifier to use in my analysis. I believe both columns are in text format although I am not 100% sure as I'm using the direct query feature from PeopleSoft which in turn disables a lot of Power BIs functionalities such as Edit Query.

 

Regards,

Gus Dahu

Create a new column instead of new measure. Newcolumn=[PO_ID]&[Business_Unit_PO]

Shantanu00007,

 

The New Column option is greyed out as my data is directly connected to PeopleSoft.

 

Regards,

Gus Dahu

 

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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