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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
drrai66
Resolver I
Resolver I

Convert text to number

Hi All,

I have 2 WHOLE NUMBER COLUMN LIKE A and B. I want To Create another  TEXT COLUMN Like THIS: A/B

 

So if

A    B    A/B

 

1     3    1/3

 

4     6     4/6

 

A/B should return TEXT VALUE  as above

 

Thanks

Deepak

2 ACCEPTED SOLUTIONS
GilbertQ
Super User
Super User

Hi @drrai66

 

I would go into the Power Query Editor, then click on Add Column in the Ribbon.

Then click on Custom Column and put in the following code below.

NOTE: This will work as long as your columns A and B are set to a data type of Whole Number

Text.From([A]) & "/" & Text.From([B])

image.png

 

Which then has the following result.

image.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

RahulYadav
Resolver II
Resolver II

Hi @drrai66,

You can use below dax formula to achieve the desired result.

 

A/B = Data[A] & "/" & Data[B]

Thanks,

Rahul

View solution in original post

3 REPLIES 3
RahulYadav
Resolver II
Resolver II

Hi @drrai66,

You can use below dax formula to achieve the desired result.

 

A/B = Data[A] & "/" & Data[B]

Thanks,

Rahul

GilbertQ
Super User
Super User

Hi @drrai66

 

I would go into the Power Query Editor, then click on Add Column in the Ribbon.

Then click on Custom Column and put in the following code below.

NOTE: This will work as long as your columns A and B are set to a data type of Whole Number

Text.From([A]) & "/" & Text.From([B])

image.png

 

Which then has the following result.

image.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Worked Perfectly!!!

Actually you showed me  a way. I did like this

 

Column =[A] & "/" & [B]

Thnaks

Deepak

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.