Page 1 of 1

Feeding calculated consolidated cell

Posted: Fri Jun 11, 2021 6:21 pm
by kenship
Hi,

I need some help in feeding a calculated consolidated cell. The attachment shows the test cube.

A simple explanation of what I'm trying to do here: I'm trying to have % calculation based on "Change" divided by "Opening" but only on subtotal level.

I tested feeders on detail level and it works but once changing the rule to calculate on C: level it won't.

Any help is appreciated.

Kenneth

Code: Select all

Skipcheck;
['%']=C:
	DB('Test', 'Change', !zA, '$')
	\
	DB('Test', 'Opening', !zA, '$')
;

Feeders;
['$'] => ['%'];
Screenshot 2021-06-11 134513.png
Screenshot 2021-06-11 134513.png (78.98 KiB) Viewed 5662 times

Re: Feeding calculated consolidated cell

Posted: Fri Jun 11, 2021 7:56 pm
by Wim Gielis
Do you need to feed anyway, or can you for example work with fixed report layouts ?
At least for the cells involved in the calculations, or can they be put alongside fed cells in the same report and don't need feeding themselves ?

Re: Feeding calculated consolidated cell

Posted: Fri Jun 11, 2021 8:19 pm
by kenship
Hi Wim,

Thanks for the response. Unfortunately the answer is yes. Basically the whole purpose is to get the % calculation on consolidated level only.

In the example shown, I need the 43.53% and couldn't show it unless the % calculation is applied to all leaf elements.

Kenneth
Wim Gielis wrote: Fri Jun 11, 2021 7:56 pm Do you need to feed anyway, or can you for example work with fixed report layouts ?
At least for the cells involved in the calculations, or can they be put alongside fed cells in the same report and don't need feeding themselves ?

Re: Feeding calculated consolidated cell

Posted: Sun Jun 13, 2021 10:40 am
by burnstripe
Have you considered making % a consolidated element with $ as it's child. As long as there's no requirement to input % and it's always a calculation this is an option that'll remove the need for feeder statements.

Re: Feeding calculated consolidated cell

Posted: Sun Jun 13, 2021 3:02 pm
by kenship
Great idea!

Will definitely try and report.

Thanks a lot!

Keneth

burnstripe wrote: Sun Jun 13, 2021 10:40 am Have you considered making % a consolidated element with $ as it's child. As long as there's no requirement to input % and it's always a calculation this is an option that'll remove the need for feeder statements.

Re: Feeding calculated consolidated cell

Posted: Mon Jun 14, 2021 7:50 am
by lotsaram
burnstripe wrote: Sun Jun 13, 2021 10:40 am Have you considered making % a consolidated element with $ as it's child. As long as there's no requirement to input % and it's always a calculation this is an option that'll remove the need for feeder statements.
This is the way.

Re: Feeding calculated consolidated cell

Posted: Mon Jun 14, 2021 2:41 pm
by kenship
The suggestion to make % the parent of $ works.

Thanks a lot!

Kenneth