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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jeongkim
Helper V
Helper V

Creating custom column from particular cell text?

Is there any function that creating custom column from particular cell text?

 

e.g. Would like to get the value '1457.3', then create custom column with "1457.3" text.

(this time I created manually but hope to have dynamically)

This value will be always there and only number will change every month so hope to get the value and put to all of rows by creating column. Then I will be able to calculate all the rows with 1457.3 value.

 

jeongkim_3-1705480908158.png

 

 

jeongkim_2-1705480748186.png

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @jeongkim ,

 

In Power BI, the text type of data is available to use the Max () function, when your data with only one line of text, Max () function will be directly access to the value, when your data has more than one text, Max () function will be based on the order of the alphabetical sorting of the text to obtain the largest of these values.

Calculated columnÇ

Column 3 =
MAX('Table'[Column 2])

vyangliumsft_0-1705549223240.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yangliu-msft
Community Support
Community Support

Hi  @jeongkim ,

 

In Power BI, the text type of data is available to use the Max () function, when your data with only one line of text, Max () function will be directly access to the value, when your data has more than one text, Max () function will be based on the order of the alphabetical sorting of the text to obtain the largest of these values.

Calculated columnÇ

Column 3 =
MAX('Table'[Column 2])

vyangliumsft_0-1705549223240.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yangliu-msft
Community Support
Community Support

Hi  @jeongkim ,

 

If it's text, you might consider using Max(), but this function takes the maximum value in the column of the calculation

MAX function (DAX) - DAX | Microsoft Learn

MAX('Table'[Test1])

Or you can use the Value() function to convert it to an integer type, before using the sum() function.

VALUE function (DAX) - DAX | Microsoft Learn

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, 

I meant if it is just letter like 'TEST' not numbers 1457.3, 

then still can use Max function?

v-yangliu-msft
Community Support
Community Support

Hi  @jeongkim ,

 

Here are the steps you can follow:

1. Create calculated column.

Test1 =
IFERROR(
    VALUE('Table'[Column11]),BLANK())
Test2 =
SUM('Table'[Test1])

2. Result:

vyangliumsft_0-1705543080893.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thank you,

If it is not number just text then still can we have the same logic?

Sum would only work with numbers. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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