cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @POS3002 ,

 

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
Highlighted
Community Support
Community Support

Hi @POS3002 ,

 

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors