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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
FRodriguez
New Member

Convert integer values to string

So, I'm working with power bi with a dataverse data source, on this data source I have a choice type column that stores a string value, I have a total of 37 choices on this column, when I make a report using it, it displays the number instead of string value, is there a way to convert this numbers to a specific text string?

 

For example, when the number 1 shows I would like to display "Label 1", when number 2 shows I would like it to display "Label 2" and so forth.

2 REPLIES 2
amitchandak
Super User
Super User

@FRodriguez , You have to create a new column

 

Label = "Label " & [Number column]

 

 

Just to make it text you can change data type as text

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Im not sure that this would work, a single record may have several labels, so for example a record may display "2.4,6" indicating that choices 2, 4 and 6 were made on that record.

 

I would, it needs to show in that case "Text Sample", "Other text sample", "Other more different text sample" all 3 as separate values

 

I tried using a switch function but it does not seem to like mixing integer with strings

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.