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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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