Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm loading a billing report into Power BI and if the deposit date has an asterix (*) on the end we need to replace the [CLT PAID NET] with a 0. (Don't ask me why, something to do with the billing software that produces the report, outside of my purview.)
[CLT PAID NET] is Int64.type
[CSH DEPTDT] is type text
#"Replace Deps" = Table.ReplaceValue(#"Removed Columns3", each [CLT PAID NET], each if Text.Contains([CSH DEPDT], "*") then 0 else [CLT PAID NET],Replacer.ReplaceValue{"CLT PAID NET"})
The code above (which the Advanced Editor says has "No syntax errors") produces this error message:
Any help is much appreciated!!
Solved! Go to Solution.
HI, @Anonymous
You just lack "," in your code: Replacer.ReplaceValue , {"CLT PAID NET"}
#"Replace Deps" = Table.ReplaceValue(#"Removed Columns3", each [CLT PAID NET], each if Text.Contains([CSH DEPTDT], "*")
then 0 else [CLT PAID NET],Replacer.ReplaceValue,{"CLT PAID NET"})
Result:
Best Regards,
Lin
HI, @Anonymous
You just lack "," in your code: Replacer.ReplaceValue , {"CLT PAID NET"}
#"Replace Deps" = Table.ReplaceValue(#"Removed Columns3", each [CLT PAID NET], each if Text.Contains([CSH DEPTDT], "*")
then 0 else [CLT PAID NET],Replacer.ReplaceValue,{"CLT PAID NET"})
Result:
Best Regards,
Lin
(-‸ლ)
Thank you.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |