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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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