Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a column with values between 0-100
However the data feeding this seems to have values over 100 such 101 and 131 and some nulls etc.
I have added a simple 'Replace Value' for nulls with 0. How do I replace any value 101 and over with 100? The Replace Value doesnt seem to allow such logic.
Solved! Go to Solution.
Hi @83dons ,
You’re right — the standard Replace Values option in Power Query doesn’t support conditional logic like “replace if greater than 100.”
Here’s how you can do it:
if [YourColumn] > 100 then 100 else if [YourColumn] = null then 0 else [YourColumn]
Table.AddColumn(#"Previous Step", "NewColumn", each if [YourColumn] > 100 then 100 else if [YourColumn] = null then 0 else [YourColumn])
Then just remove the original column and rename the new one.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI
You can create a custom column with this formula,
if [YourColumn] = null then 0
else if [YourColumn] > 100 then 100
else [YourColumn]
Hi @83dons ,
You’re right — the standard Replace Values option in Power Query doesn’t support conditional logic like “replace if greater than 100.”
Here’s how you can do it:
if [YourColumn] > 100 then 100 else if [YourColumn] = null then 0 else [YourColumn]
Table.AddColumn(#"Previous Step", "NewColumn", each if [YourColumn] > 100 then 100 else if [YourColumn] = null then 0 else [YourColumn])
Then just remove the original column and rename the new one.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |