Forum Discussion
Concatenation Question
- 8 years ago
To get the measure as requested, you may use SELECTEDVALUE Function:
Measure := CONCATENATE ( SELECTEDVALUE ( 'Table'[Column1] ), SELECTEDVALUE ( 'Table'[Column2] ) )
Regards,
Cherie
Shantanu0007,
I aprpeciate your quick response to my question. Unfortunately your solution did not work. Do you have any other alternatives?
Regards,
Gus Dahu
- Shantanu000078 years agoHelper ICould you please give a snapshot of the requirement and desired output ?
- gusdahu8 years agoHelper IV
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
- Shantanu000078 years agoHelper ICreate a new column instead of new measure. Newcolumn=[PO_ID]&[Business_Unit_PO]
- Gazzer8 years agoResolver II
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.
- gusdahu8 years agoHelper IV
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