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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
eriku
Regular Visitor

Converting numbers to text

Hello!

 

Background:

 

I am using Dynamics 365 data, primariliy opportunity data - the opportunity statuses include open, won, and lost. The issue I'm having is that these values appear as 0, 1, and 2 in Power BI. 

 

I am familiar with navigating Power BI (e.g., data transformation, relationship management, etc.,).

 

Is there a simple solution to this problem?

 

Thanks!! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@eriku , You have to create a new column in the power query of DAX

 

In DAX

 

Switch([Status],

0, "Open",

1, "Won",

2, "Closed"

)

 

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

View solution in original post

2 REPLIES 2
eriku
Regular Visitor

Thanks for the response.  I'm not familiar with DAX. I am trying to figure it out now. Is DAX built in or is a third-party application/tool?

amitchandak
Super User
Super User

@eriku , You have to create a new column in the power query of DAX

 

In DAX

 

Switch([Status],

0, "Open",

1, "Won",

2, "Closed"

)

 

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors