Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to compute the percentage of an aggregate value in a TableView Merger?

Joel Tabares January 23, 2020

Hi,

The picture below is from a TableView Merger from a data table. I wanted to get the % Deductible from the total values (Deductible and Total Amount) = 67%. 

Using the Function:

* Percent:(CONCAT(ROUND((([entry.Deductible] / [entry.TotalAmount]) * 100),0),"%"))

It gave me the individual percentages from the original table.

 

Capture.JPG

 

Below is the source data tableCapture1.JPG

1 answer

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2020

Calculations in TableViewMerger are done per data row. The column calculating the % is concatenated from 3 calculations (as ConfiForms fails to recognise the value as numeric and concats it as strings)

Joel Tabares January 27, 2020

Ok. Thank you Alex. I guess there is no way Confiforms can handle what i needed to get, either using TableViewMerger or anything within Confiforms.

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2020

Not with built-in ConfiForms macros, no. But you can always have a small script utilizing the ConfiForms REST API and calculate whatever you need.

For example

https://wiki.vertuna.com/display/TEST/Averages%2C+totals%2C+sums+and+standard+deviation+calculation

 

And your case:

https://wiki.vertuna.com/display/TEST/Using+ConfiForms+REST+API+and+JavaScript+to+calculate+totals+and+percentage

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events