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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Change data type of parameter from number to text

Hi All,

I have created a parameter on Posting Period: Values for posting period are 001,002,003,.........011,012.

When I create a parameter and enter the current value ass "001" and click on OK, it changes to "1".

 

Untitled.png

Untitled.png

 

 

The data in my database is 001 and passing just 1 is giving me an error.

 

I need to change the parameter data type to Text(ABC) rather than whole number(123) to accept 001 as value and pass to the DB to fetch the data.

Can someone please let me know how to achieve this?

 

Thanks

Poojitha

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

When you create "Posting Period" parameter, it is needed to change the type to "Text", not "Any".

You can modify the type according to the following steps:

1. Manage Parameter.

2. Change the Type of Parameter from "Any" to "Text".

3. Enter "001" to current value.

4. OK.

parameter.gif

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Icey
Community Support
Community Support

Hi @Anonymous ,

 

When you create "Posting Period" parameter, it is needed to change the type to "Text", not "Any".

You can modify the type according to the following steps:

1. Manage Parameter.

2. Change the Type of Parameter from "Any" to "Text".

3. Enter "001" to current value.

4. OK.

parameter.gif

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.