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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors