Forum Discussion
Sum data with custom suffix
Hi, Anonymous,
there is no equivalent function in Power BI. You could try to use the concatenate function in a measure, and see if that helps: concatenate(sum(value)," GB")
Hey sturlaws ,
that really helped for the first step. Thanks! Now i wanted to add a thousands seperator. That does not seem to work, since the measure is considered a text, too.
Greetings!
- v-xuding-msft7 years agoCommunity Support
Hi Anonymous ,
It is not supported to calculate values with suffixes. You need to calculte firstly, then add the suffixes.
You could try the following formula to implement the requirement. But it is still showed as text .
Column = FORMAT('Table'[VALUES],"#,##GB")Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
Hey v-xuding-msft ,
the format looks great with your solution but the problem is, that i'm using a table to display the drive sizes of different virtual machines. In the raw data, there could be several records for one VM. i.e.
VM-DC-01 100 E: VM-EX 900 D: VM-FS 2000 F: VM-DC-01 50 C:
So for the VM "VM-DC-01", my table should display the total (summed up) drive size of "150 GB". With your solution, i can't change to sum in the visual options for that field:
But by combining yours and sturlaws solution, i came as close as i can get! :) So thanks to the both of you!... (I would have to mark both of your comments as accepted solution... what's the best way to do that?)
I ended up with this measure, which works fine so far:
GB_Test = FORMAT(SUM('Table'[DriveSize]);"#,## GB")Thanks to the both of you!
Edit (29.07.2019 08:55):
Now i found the downer for this solution. I can't sort by size in my table. The data gets sorted as text, which is not want i want (the screenshot shows a table where virtual machines are grouped by customer. Similar to the sample above) :(
- Anonymous4 years agoNot applicable
I had a similar situation with number values that represent Watts, a first request was display on Kilo Watts (KW), the second was add the KW suffix but as you if I do that, the number change to text, so I end let with the suffic and indicate only on the Column Title.
My recommendation, it's better have the functionality vs look & feel, but try to let the Suffix on titles with bigger size letter.