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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Patfor
New Member

Issue with replacing using multiple conditions in Power Query Editor

Hello, I'm trying to use this formula to fill in "0 - 10" in the field called Value_Range

This has multiple conditions for Power Query Editor but I do not know what I'm missing because its not filling in.

 

= Table.ReplaceValue(#"Replaced Value44",

each [Value_Range],

each if [Domains] = "Income Disparity" and [value] >= 0 and [value] <= 10 then "0 - 10" else [Value_Range],

Replacer.ReplaceText,{"Value_Range"})

 

So, I'm trying to say... In the column called Domains where there is a string = "Income Disparity" AND also in the column called [value] if the value is = or > 0 and = < 10, then replace whatever is in the column Value_Range with "0 - 10" 

I will also have to add another condition for "11 - 20" and another for "21 - 30" 

Thanks 

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

Hello @Patfor 

 

what about instead of replacing, you can add a conditional column, then remove the older column if you want : 

Daniel29195_1-1706395192808.png

 

 

 

let me know if it works for you . 

 

 

 

If my answer helped sort things out for you, feel free to give it a thumbs up and mark it as the solution! It makes a difference and might help someone else too. Thanks for spreading the good vibes! 👍🤠

View solution in original post

2 REPLIES 2
Daniel29195
Super User
Super User

Hello @Patfor 

 

what about instead of replacing, you can add a conditional column, then remove the older column if you want : 

Daniel29195_1-1706395192808.png

 

 

 

let me know if it works for you . 

 

 

 

If my answer helped sort things out for you, feel free to give it a thumbs up and mark it as the solution! It makes a difference and might help someone else too. Thanks for spreading the good vibes! 👍🤠

This is genius and I'm now seeing more places where I can use this! Thanks! If they added 1 more piece to this where they allowed you to create multiple arguments for each range.... like one condition from this column AND another condition from this other column THEN .... Anyways thanks again!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.