Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jendoren
New Member

Filter rows based on length in Power Query

Hello all! 

 

I am working with a table that has phone numbers of varying lengths in a column called dialednumber as part of the table ytd_cb. 

What I want is a query that will filter the table to only show phone numbers that are 11 digits in length.

 

Thank you! 

3 REPLIES 3
lpetty421
Advocate I
Advocate I

Thanks Jakinta!!!

m_dekorte
Super User
Super User

Hi @Jendoren,

 

Give this a go. Set a manual filter on that column in your table, this is just to create the bulk of the syntax.

Next inside the formula bar update the code as highlighted here:

m_dekorte_1-1682023722036.png

 

 

Please mark this answer as solution when it helped you to resolve your question, thanks!

Jakinta
Solution Sage
Solution Sage

Try the step below.

Table.SelectRows(YourPreviousStepName, each Text.Length([dialednumber])=11)

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.