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!View all the Fabric Data Days sessions on demand. View schedule
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
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!