Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Analitika
Post Prodigy
Post Prodigy

Remove $ character from column if other colum equals to something in Power BI

Hello,

 

I would like to ask how to replace character "$" to "" in column if other column equals to value "A" as example.

2 REPLIES 2
rohit_singh
Solution Sage
Solution Sage

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! 😊

danextian
Super User
Super User

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"





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors