Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I would like to ask how to replace character "$" to "" in column if other column equals to value "A" as example.
Hello @Analitika ,
Please refer to the solution here :
Solved: Replace value in Power Query based on condition - Microsoft Power BI Community
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
Hi @Analitika ,
Create a calculated column using DAX similar to below
No $ =
IF (
CONTAINSSTRING ( Table[Other Column], "A" ),
SUBSTITUTE ( Table[Original Column], "$", "" ),
Table[Original Column]
)
or in PQ, create a custom column
if Text.Contains( [Other Column], "A") then Text.Replace([Original Column], "$", "") else [Original Column]Note: M is case-sensitive. "A" is not equal to "a"
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!