We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi All
I have a table with columns "ITMDESC". I am adding a new column by searching a word from the ITMDESC and adding new columns with the searched name. like I am searching "SWITCH" from ITMDESC, if it is there it will write SWITCH in the column else "N".
now I have three new columns, SWITCH, DAMPER, and FLANGE. what I need is to combine all three columns into one new column, where "N" is not there and only words like "SWITCH" or DAMPER or FLANGE will come from the columns.
hope you understand.
Thanks in advance.
Atif
Solved! Go to Solution.
Sorry for the inconvenience. Please use the below code . It will work for sure.
CombinedColumn =
IF(
CONTAINSSTRING('Table'[itemdesc], "Switch"),
"Switch",
IF(
CONTAINSSTRING('Table'[itemdesc], "Damper"),
"Damper",
IF(
CONTAINSSTRING('Table'[itemdesc], "Flange"),
"Flange",
"N"
)
)
)If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
You can use the below code:
CombinedColumn =
CONCATENATEX(
'YourTable',
IF('YourTable'[SWITCH] = "N", "", 'YourTable'[SWITCH]) &
IF('YourTable'[DAMPER] = "N", "", 'YourTable'[DAMPER]) &
IF('YourTable'[FLANGE] = "N", "", 'YourTable'[FLANGE]),
", "
)It will combine three columns into single column.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
thanks for your reply but this code
what I need is that the new column just does not display "N". it will just display "Switch" or "Damper" or "Flanage" or whatever item is there in the ROW from columns.
Hope i make you understand
Thanks
Sorry for the inconvenience. Please use the below code . It will work for sure.
CombinedColumn =
IF(
CONTAINSSTRING('Table'[itemdesc], "Switch"),
"Switch",
IF(
CONTAINSSTRING('Table'[itemdesc], "Damper"),
"Damper",
IF(
CONTAINSSTRING('Table'[itemdesc], "Flange"),
"Flange",
"N"
)
)
)If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |