Percentage of each item based on total

  • 28 November 2022
  • 5 replies

Guys, how are you? I'm trying to create a column that shows the percentage of each item's quantity based on the total sum of quantity. I'm not getting success... if I put the percentage directly in the insight, I can't add another column with integer values. Is there any metric that brings me these values?Attempt to create a metric...SELECT (SELECT SUM(Quantidade) BY Tenant, ALL OTHER WITHOUT PF) / (SELECT SUM(Quantidade))
Trying through Analyze- This is the desired column



- But when adding the quantity column in integer format, it disables the "show in %" option



Best answer by Joseph Heun 28 November 2022, 18:17

View original

5 replies

Userlevel 3

Hello Douglas, 

This is set up by design. The format for percent is allowed to use this, whereas Decimal is not. I can submit this as product feedback on your behalf if you would like?


Yes I do, thanks for the help @Joseph Heun =)
Is there another way to get around this problem?

Userlevel 3

You should be able to open the metric in metric editor and then set the custom number formatting from there. Can you please confirm which product you are using?

I believe I'm using Gooddata Growth. 
You told me to change the formatting to be different from decimal, right? But I have to add another column that will calculate the percentage of values ​​like $0.00, in this case it needs to be decimal...


Userlevel 3

I meant in the metric editor, using the format editor. This isn’t in the reporting/insights tab, but rather in the metric editor: 


You can try and create something where you play with the formatting here to get what you are looking for, but it may not make the most sense if you are working with a simple sum function.