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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Format string

In the following table as example :

Table1

column
-1,14
-0,07
0,67
1,00
-2,77

which format string should be used to get this result:

 

column
-1,14%
-0,07%
0,67%
1,00%
-2,77%

(',' is for decimal number -2,77 =-2.77)

I know there are other ways in tabular to do this but I should do this with Format function.

7 REPLIES 7
Anonymous
Not applicable

One solution is to change the column to percentage directly from DATA >>Column Tools >> Formatting.  

per.png

 

 

 

 

you can also format your column using DAX

Column = FORMAT(DIVIDE(Sheet1[Profit],10000),"percent")

 

And if you want to convert "," to "." then use the following DAX, and to convert it into percentage use the above steps.

column = SUBSTITUTE(Sheet1[Profit],",",".")

 

Fowmy
Super User
Super User

@Anonymous 

In our example both numbers have "," Do you need to convert to "," or "." 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy 

I need to convert to ','(as example shows)  . I only wanted to be clear 🙂

@Anonymous 

Not quite clear about what you are trying to do but add the following column to convert :

Column = SUBSTITUTE(SUBSTITUTE(Table2[Column1],",","."),"%","") /100

 

Fowmy_0-1622204918698.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy I get this:

Eagle77_0-1622206570959.png

 

As I mentioned I want to use Format function with a string of # and 0. I've tested different type of string like "#0,00%" (it's just an example) but don't get what I want.

I am still confused about the what you exactly need.  Your locale is different from mine too. 

refert to: https://dax.guide/format/

 

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy  I resolved this by using dax format. but thank you anyway 🙂

Helpful resources

Announcements
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.