Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I have the below custom column I would like added, however, I am getting a 'Token ',' expected error showing.
Any ideas what simple thing I am doing wrong 🙂
Text.TrimStart (
Text.Contains([POS PARENT DIVISION NAME],"Area ") then text.end([POS PARENT DIVISION NAME],2)
else "99" )
Thanks
Alex
Solved! Go to Solution.
Hi @villa1980
you forgot the if clause
The following code should work 🙂
Text.TrimStart(
if Text.Contains([POS PARENT DIVISION NAME], "Area ")
then Text.End([POS PARENT DIVISION NAME], 2)
else "99"
)
Hi @villa1980
you forgot the if clause
The following code should work 🙂
Text.TrimStart(
if Text.Contains([POS PARENT DIVISION NAME], "Area ")
then Text.End([POS PARENT DIVISION NAME], 2)
else "99"
)
That is great tank-you so much for the reply, I knew I was missing something so simple
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 5 | |
| 5 | |
| 3 |