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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Uttasarga
Frequent Visitor

Customizing User Inputs in the Text Slicer Visual on PBI Desktop

Hi Fellow PBI'xers, I've a report that has a Text Slicer Visual (Preview Feature), in which what I want to do is lpad default "0000"  to the user's input, until the point where the input string is 14 Digits in Length.

Example - If the user inputs "1234567", then the text slicer should add leading zeros to this input, thus making it "00000001234567".

6 REPLIES 6
v-nmadadi-msft
Community Support
Community Support

Hi @Uttasarga  ,
Thanks for reaching out to the Microsoft fabric community forum.

A workaround for what you are trying to achieve is by using Duplicate column in transform data

vnmadadimsft_0-1751021448802.png

 


With that duplicated column, you can split the column by based on number of characters

vnmadadimsft_1-1751021448803.png

 



Now you will get 1234567 as a separate column, you can directly enter it into the input to filter the visuals of your choice.


If this post helps, then please consider Accepting as solution to help the other members find it more quickly and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you


Hi @v-nmadadi-msft , but that would mean to remove leading zeros from the column values.
My report is using Direct Query, and the data volume is 8M rows on avg, each day since the past 4 years. Doing a customization you mentioned above will not be supported by Direct Query.

lbendlin
Super User
Super User

Why not do the padding in the UDF?

Hey @lbendlin , so I should create a UDF that does the padding of user inputs in the text slicer?

That would be my suggestion. Where are you planning to store the user input?

Do you have an example I can use? User's Input will be in a Text Slicer Visual

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.