Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Aggregate function

David Doret _Admin_ February 3, 2020

I use Confluence Cloud with Confiforms. My need is simple: display basic calculation results over confiform data.

I have a form F. It has a radio field R with options 1=a,2=b,3=c.

I would like now to display on my page the average value of field R over all records of form F.

I feel stupid because I spent several hours looking through the documentation, examples and forum questions but couldn't get it working. I couldn't even clearly understand which macro I should use to display the value.

Thanks in advance for your assistance.

2 answers

1 vote
Natalie Paramonova [Stiltsoft]
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.
February 3, 2020

Hello David,

You can try to use the ConfiForms app in combination with the Pivot Table macro bundled in the Table Filter and Charts app. With the help of this macro, you can aggregate data from your resulting table in a pivot table and perform calculations.

Alex Medved _ConfiForms_
Community Champion
February 4, 2020

How well does it work with Confluence cloud and the missing feature of the new Confluence editor - nesting the bodied macros (which you need to have in order to get the results from ConfiForms)?

David Doret _Admin_ February 8, 2020

The apps are great. But unfortunately, the  impossibility to best macros makes them of no use. I bang my head against the walls not understanding why macro nesting is no longer supported. :-(

Alex Medved _ConfiForms_
Community Champion
February 8, 2020

That Atlassian decision we cannot understand either - and instead of improving our cloud app and filling the feature gaps between the server and cloud version we had to spend last year adopting this new editor...

 

So, in ConfiForms cloud you can use ConfiForms ValueView and do some basic calculations (averages, totals, simple formulas). Everything is calculated per ROW and then aggregated

The example below calculates the average for "num" field

Screenshot 2020-02-08 at 13.11.33.png

More operations we support

https://wiki.vertuna.com/display/CONFIFORMS/Supported+math+operators%2C+formulas+and+functions

0 votes
David Doret _Admin_ February 3, 2020

Ooops, sorry, this was the wrong forum :-)

Alex Medved _ConfiForms_
Community Champion
February 4, 2020

No worries, adding the same comment I left in our support channel (JSD)

--

ConfiForms cloud does not have the TableViewMerger macro as of now. This is the one that can help here, but it is available on server/data center only

You can always go for https://wiki.vertuna.com/display/FORMS/REST+API+for+ConfiForms+CLOUD for calculations or exporting your data in CSV/Excel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events