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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

How to use List function to replace multiple columns in one step

Hello Geniues, need your help!

I have three tables with default value 0, and i wanna replace to different values per column. 

For instance: i have 1,2,3 columns, wanna replace the value as A,B,C separately per column, how can i do it in one step? with List function?

RW0711_1-1649773906738.png

 

Really appreciate your help!

 

Br,

Ranwen

 

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Try following (Razon has English o, so you will need to replace it appropriately)

= Table.TransformColumns(#"Source",{{"RUC EMISOR", each if _="0" then "A" else _},{"DVREL RUC", each if _="0" then "B" else _},{"RAZon Social EMISOR", each if _="0" then "C" else _}})

There are other approaches available as well but building in one single step as per your requirement is complex.

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Try following (Razon has English o, so you will need to replace it appropriately)

= Table.TransformColumns(#"Source",{{"RUC EMISOR", each if _="0" then "A" else _},{"DVREL RUC", each if _="0" then "B" else _},{"RAZon Social EMISOR", each if _="0" then "C" else _}})

There are other approaches available as well but building in one single step as per your requirement is complex.

Anonymous
Not applicable

thank you!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.