Skip to main content
Question

How to calculate the percentages for each column of a data table?

  • February 15, 2022
  • 3 replies
  • 42 views

Hi,

 

I have a data table that has 3 columns: -, 0, 1

  • with a load of data rows below them.

 

How do I go about calculating the total percentage for each column?

 

I would potentially want a KPI in my dashboard that immediately tells me

  • 0 = x%
  • 1 = y%
  • - = z%

thanks,

Terence

3 replies

florian.mrkvi
Level 7
Forum|alt.badge.img

Hi Terence!

When you write "the total percentage for each column", what do you mean exactly?

Is 100% the sum of all values in all columns?

 

Is that what you are looking for:

X | Y | Z

-------

1 | 5 | 4

2 | 7 | 8

6 | 0 | 3

-------- (Total: 36)

25% | 33% | 42%

 


  • Author
  • Level 4
  • February 16, 2022

Hi Terence!

When you write "the total percentage for each column", what do you mean exactly?

Is 100% the sum of all values in all columns?

 

Is that what you are looking for:

X | Y | Z

-------

1 | 5 | 4

2 | 7 | 8

6 | 0 | 3

-------- (Total: 36)

25% | 33% | 42%

 

Yes, that's essentially what I would want. Apologies if I didn't make it clear.

 

If I could get something similar to the example you provided, that would be great.


florian.mrkvi
Level 7
Forum|alt.badge.img

For x it would be:

SUM("Table"."Column_X") /

(SUM("Table"."Column_X") + SUM("Table"."Column_Y") + SUM("Table"."Column_Z"))