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
tksnota01
Frequent Visitor

Filter Start With

Hi,

 

I have a number column showing profit centre.

 

I want the user to have the option to filter the column that starts with the first 2 digits like "19", "14", etc.

 

Is this possible even if the column only contains number?

 

Thanks...tksnota01...

 

tksnota01_0-1744886440904.png

 

 

tksnota01_1-1744886469855.png

 

1 ACCEPTED SOLUTION
kpost
Super User
Super User

This solution allows you to filter the page using the first two characters of the number. You can also just add this value as the top layer of a slicer hierarchy if you want to eliminate the need for users to 'search' using their keyboard for the first two numbers, as the other user suggested.

 

  I created a table with some of these numbers.

screenshot1.PNG

 

Then in Power Query I used "Extract" to get the first two characters in a new column:

screenshot2.PNG

screenshot3.PNG

screenshot4.PNG

 

Then I created a slicer using this new column in the report.  Here you can see me using it to filter on 14% and 19%.

 

 

screenshot 6.PNG

screenshot5.PNG

 

Here it is using a multi-level hierarchy for the slicer:

 

hierarchy.PNG

 

Attached is the .pbix file solution.

 

///Mediocre Power BI Advice, but it's free///

View solution in original post

4 REPLIES 4
v-bmanikante
Community Support
Community Support

Hi @tksnota01 ,

 

Thank you for reaching out to Microsoft Fabric Community.

@kpost @SEMattis Thank you for your quick response.

 

we would like to follow up to see if the solution provided by the super users @kpost @SEMattis  resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

Regards,
B Manikanteswara Reddy

kpost
Super User
Super User

This solution allows you to filter the page using the first two characters of the number. You can also just add this value as the top layer of a slicer hierarchy if you want to eliminate the need for users to 'search' using their keyboard for the first two numbers, as the other user suggested.

 

  I created a table with some of these numbers.

screenshot1.PNG

 

Then in Power Query I used "Extract" to get the first two characters in a new column:

screenshot2.PNG

screenshot3.PNG

screenshot4.PNG

 

Then I created a slicer using this new column in the report.  Here you can see me using it to filter on 14% and 19%.

 

 

screenshot 6.PNG

screenshot5.PNG

 

Here it is using a multi-level hierarchy for the slicer:

 

hierarchy.PNG

 

Attached is the .pbix file solution.

 

///Mediocre Power BI Advice, but it's free///

SEMattis
Advocate III
Advocate III

Hi!

Could you not solve this by enabling the search function in the slicer?  To enable it hover over the slicer and click the three dots at the top left corner. Then enable the search!

SEMattis_0-1744888680169.png

 

will this feature work for columns containing numbers? I tried this approach but i can't make it work...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.