Forum Discussion
How do you change the data label number format in Power BI Charts?
- 11 years ago
I tried the following with one of my calcuations in "Power BI Desktop" and I was able to get the type of formatting that you were looking for vs. the default #.##K type formatting you had in your screenshot. Unfortuneatly that only works for card style tyles since it changes the numeric format to text (And text style calcs can't be used in bar graphs and other charts)
Total Received = FORMAT(SUM(Receipts[Receipts]),"#,###") -- This measure formula rendered like this:
Based on the current version the only changes you can make to label formatting for measures are the following:
Hope this helped. I would expect that we'll see more control for formatting in a future build at some point although I don't know when that will happen.
The data source is a simple flat table in Excel. I'm then pulling that table into Power BI Designer like you mentioned.
In Power BI Designer, I created a simple measure that uses COUNTROWS to give me the total number of row instances in the table, which I am simply displaying in a line chart to view the data over a 12-month period (e.g. Monthly Users Per Month).
So, I'm using a measure as my 'Values' field for the line chart visualization, and not a column from the source table (I'm not sure if that's why I can't format the numbers correctly or not).
Please see the screen shot below for more details.
Again, I'm simply trying to change the "66.22k" to "66,220" and so on.
Thanks!
I tried the following with one of my calcuations in "Power BI Desktop" and I was able to get the type of formatting that you were looking for vs. the default #.##K type formatting you had in your screenshot. Unfortuneatly that only works for card style tyles since it changes the numeric format to text (And text style calcs can't be used in bar graphs and other charts)
Total Received = FORMAT(SUM(Receipts[Receipts]),"#,###") -- This measure formula rendered like this:
Based on the current version the only changes you can make to label formatting for measures are the following:
Hope this helped. I would expect that we'll see more control for formatting in a future build at some point although I don't know when that will happen.
- Banrahul10 years agoRegular Visitor
This was really helpful. Do you know how can we format multiple columns in Power BI through a single querry?
- Banrahul10 years agoRegular Visitor
If there are varying range of numbers, say few in millions and few in thousands. Do you have an idea how do we format the data or the card such that when it is in millions, it shows M for example 6.04M and for the values in the range of thousands, it shows in thousands, example 25,000
- Rio8 years agoFrequent Visitor
I have the same question. is there any solution to this now with the latest version?
- csaladenes7 years agoNew Member