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! Request now
Hey,
This code is on error due to [Volume(24h)]. What is the solution for correcting this error ?
Thanks a lot
= Table.ReplaceValue(#"Clean data Name",
each [Volume(24h)],
each Text.RemoveRange([Volume(24h)],Text.Length([Volume(24h)])-Text.Length([Acronyme]), Text.Length([Acronyme])),
Replacer.ReplaceText,
{"Volume(24h)"}
)
Solved! Go to Solution.
Hi @informer ,
The issue occurs because column names with special characters, such as parentheses, require special handling in Power Query (M language). In your case, Volume(24h) contains parentheses, so it must be enclosed in square brackets and quoted with a # sign and double quotes. The correct approach is to reference it as #"Volume(24h)" throughout the formula. Here’s the corrected version of your code:
= Table.ReplaceValue(
#"Clean data Name",
each [#"Volume(24h)"],
each Text.RemoveRange([#"Volume(24h)"], Text.Length([#"Volume(24h)"]) - Text.Length([Acronyme]), Text.Length([Acronyme])),
Replacer.ReplaceText,
{"Volume(24h)"}
)
This ensures that Power Query correctly identifies the column name and processes it without syntax errors.
Best regards,
Hi @informer ,
The issue occurs because column names with special characters, such as parentheses, require special handling in Power Query (M language). In your case, Volume(24h) contains parentheses, so it must be enclosed in square brackets and quoted with a # sign and double quotes. The correct approach is to reference it as #"Volume(24h)" throughout the formula. Here’s the corrected version of your code:
= Table.ReplaceValue(
#"Clean data Name",
each [#"Volume(24h)"],
each Text.RemoveRange([#"Volume(24h)"], Text.Length([#"Volume(24h)"]) - Text.Length([Acronyme]), Text.Length([Acronyme])),
Replacer.ReplaceText,
{"Volume(24h)"}
)
This ensures that Power Query correctly identifies the column name and processes it without syntax errors.
Best regards,
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 |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 5 | |
| 3 |