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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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