Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi Folks,
new to power BI and just designing my first reports. I have read a lot of atricles online but cant seem to find a solution for what would seem a very basic formatting request. I am getting my data from SQL server in tabular form and have created a simple sales table. I have formatted the data to £ which is fine but the numbers are coming through as say £3,000,000 when I want it to say £3000k in order to reduce the clutter in the table.
Surely a simple solution ??
Thanks
Richard
Solved! Go to Solution.
Create a new Column in the datamodel and use if statment while formatting
something like this
[url=https://imgbb.com/][img]https://image.ibb.co/kPnzsn/Formatting.png[/img][/url]
Hi @Richard76,
Currently, all the built-in formats are listed in the Format option in Modeling pane. If there doesn't exist the format like £3000k, it means that we cannot achieve it with built-in ways.
So to achieve your requirement, we need some workarounds. We should first define an unit and manually format the original currency to your wanted format. Please refer to following calculated column:
Formatted amount =
IF (
Amount[Amount] > 3000,
"£" & DIVIDE ( Amount[Amount], 1000 )
& "K",
"£" & FORMAT ( Amount[Amount], "####" )
)
However, by doing this the new column will be displayed as text type no longer numbers. Because there's no such format in numbers column. If you still want to keep numbers column with your wanted format. I'm afraid currently it is not supported in Power BI desktop. And I would suggest you to submit an idea here for a feature request.
Thanks,
Xi Jin.
Really ?? So if I have 12 columns I need to format I need to add in 12 new columns together with the formule below.
I thought it would be a click of a button job !
Create a new Column in the datamodel and use if statment while formatting
something like this
[url=https://imgbb.com/][img]https://image.ibb.co/kPnzsn/Formatting.png[/img][/url]
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |