Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
One solution is to change the column to percentage directly from DATA >>Column Tools >> Formatting.
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],",",".")
@Anonymous
In our example both numbers have "," Do you need to convert to "," or "."
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Fowmy I get this:
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/
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |