Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all, may I know if there is any way I could replace the number if the last digit is "0" then replace with 1
using query like this
= Table.ReplaceValue(#"Changed Type",each [QTY],
if Text.End(Text.From([Text], "en-HK"), 1) = 0 then 1))
| QTY | QTY-modify |
| 2500 | 2501 |
| 2501 | 2501 |
| 5000 | 5001 |
| 5001 | 5001 |
| 7500 | 7501 |
| 1000 | 1001 |
| 5000 | 5001 |
Great thanks!
Solved! Go to Solution.
@Vera_33 thanks for your help.
I have also try another option which could be applicable
= Table.ReplaceValue(#"Changed Type", each [QTY], each if Text.End(Text.From([QTY]), 1) = "0" then
[QTY]+1
else [QTY],Replacer.ReplaceValue,{"QTY"})
Hi @ngct1112 ,
If your issue is solved ,could you pls mark the correct replies as answered to close it?
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 3 | |
| 3 |