Forum Discussion
How to change specific text values in some rows
Dears,
Thanks to support me to solve below inquiry,
- Column A > country name [Egypt, US, etc...]
- Column B > category [Result, Defect qty, Sales qty]
I need to change "Result" in column B by adding country name (to be: Egypt Result) without changing other category value
Mohamed-Sayed
Can you please share your expected result in Excel screenshot- Anonymous2 years ago
Hi Mohamed-Sayed ,
To change the "Result" values in Column B by appending the country name from Column A without altering other values in Column B, you can use Power BI's Power Query Editor to transform your data with a custom column.
= if [Column B] = "Result" then [Column A] & " " & [Column B] else [Column B]How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- AnonymousNot applicable
Hi Mohamed-Sayed ,
To change the "Result" values in Column B by appending the country name from Column A without altering other values in Column B, you can use Power BI's Power Query Editor to transform your data with a custom column.
= if [Column B] = "Result" then [Column A] & " " & [Column B] else [Column B]How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- PijushRoy
Community Champion
Mohamed-Sayed
Can you please share your expected result in Excel screenshot