Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
How I could replace column values by specific condition. For example, I am concatenating company name and journal code.
I know that some companies journal codes contains $ character some not. I want replace concatenated column values $ if it contains company name "cname" etc.
Solved! Go to Solution.
Hi @Analitika ,
Pls test the below:
newvalue = IF(FIND("cname",'Table'[value],1,BLANK())<>BLANK(),"&"&""&'Table'[value],'Table'[value])
Then delete the before column and rename new column:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @Analitika ,
Pls test the below:
newvalue = IF(FIND("cname",'Table'[value],1,BLANK())<>BLANK(),"&"&""&'Table'[value],'Table'[value])
Then delete the before column and rename new column:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
check this
New column = If(OR(CONTAINS('Journal code','Journal code'[Journalcode],"$"),'Journal code'[Companyname]="Cname"),
CONCATENATE('Journal code'[Companyname], SUBSTITUTE('Journal code'[Journalcode],"$","")),
CONCATENATE('Journal code'[Companyname],'Journal code'[Journalcode]))Thanks,
Arul
Hello @Analitika ,
Please refer to the solution here :
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
@Analitika , you can replace in power query .
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!