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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
srinudatanalyst
Frequent Visitor

Text should be text and numeric values ​​should be converted to percentage

Hi everyone,

One Column (Data type text) contains text and numeric values.

Text should be text and numeric values ​​should be converted to percentage in Power BI.

how i will get this.

 

This is sample data

srinudatanalyst_0-1747475934553.jpeg

 

Thanks and regards

Gopi

1 ACCEPTED SOLUTION
bchager
Super User
Super User

@srinudatanalyst  Here's an approach using custom columns in the query editor (M), and DAX calculated columns. One multiplies the original number by 100 and one doesn't. A sample .pbix is attached.

bchager_2-1747570583422.png

 

 

 

 

 

View solution in original post

7 REPLIES 7
v-priyankata
Community Support
Community Support

Hi @srinudatanalyst 
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

v-priyankata
Community Support
Community Support

Hi @srinudatanalyst 
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

v-priyankata
Community Support
Community Support

Hi @srinudatanalyst 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

data_msfabric
Frequent Visitor

Hi, You can try at Power Query lik this:

 

Custom column in Power query:

= Table.AddColumn(#"Changed Type", "Custom column in Power Query", each if Text.Select([Q1], {"0".."9", ".", "-"}) = [Q1] then Number.ToText(Number.From([Q1]) * 100) & "%" else [Q1])

 

Or with a calculated column like this:

 

Q1_Percent =
VAR Val = SUBSTITUTE([Q1], "%", "")
VAR NumVal =
    IF (
        ISERROR ( VALUE ( Val ) ),
        BLANK(),
        VALUE ( Val )
    )
RETURN
IF (
    NOT ISBLANK ( NumVal ),
    FORMAT ( NumVal , "0.0%" ),
    [Q1]
)

 

solution.jpgCustom.jpg

  •  

@data_msfabric  Your DAX isn't quite right. It's converting 100% to 10000%.

bchager
Super User
Super User

@srinudatanalyst  Here's an approach using custom columns in the query editor (M), and DAX calculated columns. One multiplies the original number by 100 and one doesn't. A sample .pbix is attached.

bchager_2-1747570583422.png

 

 

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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