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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Power query experts,
I have a column that contains an extension number. For instance 100, 200, 12438976, 9872177654, ###, etc.
I will like a dax function to count the number of characters and categorize into "internal" or "external".
so the calc should be something like this. if the number of characters is greater than 10 then "internal" else "external".
Is there a function i can use to generate this logic.
Thank you
Solved! Go to Solution.
@Nanakwame you can use the following as a measure or column:
Measure = IF ( LEN ( 'Table'[Column] ) > 9 , "Output 1" , "Output 2" )
Hope all is well mate.
Speak soon 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Thank you Sir. Talk to you soon
@Nanakwame you can use the following as a measure or column:
Measure = IF ( LEN ( 'Table'[Column] ) > 9 , "Output 1" , "Output 2" )
Hope all is well mate.
Speak soon 🙂
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.