Percentage of Sub-total
Completed
Hi,
Is it possible to use the 'Percentage of Total' function but calculated for Sub-totals?
I have a report that calculates the % of the total number but I'd like it to do it for the Income and Expenditure respectively, I've included an additional column to show how I'd like the end result to look.
Regards,
Lawrence
Hi Daryle,
Since there have now been a couple of requests for this functionality, I have put together a custom advanced function to achieve this.
Upload the attached jar file through the plugin manager. The new function will be called "Sectioned Percentage of Total". Apply this to the column of choice, and select the column used for your sub-totals as the reference column. In the original example you would select MA2 as the reference column.
Let me know if you run into any problems with this.
Regards,
Nathan
Hi Daryle,
Since there have now been a couple of requests for this functionality, I have put together a custom advanced function to achieve this.
Upload the attached jar file through the plugin manager. The new function will be called "Sectioned Percentage of Total". Apply this to the column of choice, and select the column used for your sub-totals as the reference column. In the original example you would select MA2 as the reference column.
Let me know if you run into any problems with this.
Regards,
Nathan
Hi Lawrence,
Thanks for sending in the question. This might not be the cleanest way to express this (there might be other ways to accomplish this via Report from Report), but I think to accomplish what you are after you are going to need to consider using sub queries.
Using basic append sub queries I was able to accomplish the following:
In your case, the master query would contain your MA2, MA4, BUD, and % of Total columns. Then you could create an individual sub query for income and expenditure each (filtering the sub query by either income or expenditure to limit the sub query results) to produce an individual % of Total.
If you you haven't worked with sub queries before, our wiki has some great information on the subject:
http://wiki.yellowfin.com.au/display/USER72/Append+Sub+Query
Can you review this and let us know if this solution could work for you, or if you have any follow-up questions here? I look forward to hearing back!
Kind Regards,
Dustin
Hi Lawrence,
Thanks for sending in the question. This might not be the cleanest way to express this (there might be other ways to accomplish this via Report from Report), but I think to accomplish what you are after you are going to need to consider using sub queries.
Using basic append sub queries I was able to accomplish the following:
In your case, the master query would contain your MA2, MA4, BUD, and % of Total columns. Then you could create an individual sub query for income and expenditure each (filtering the sub query by either income or expenditure to limit the sub query results) to produce an individual % of Total.
If you you haven't worked with sub queries before, our wiki has some great information on the subject:
http://wiki.yellowfin.com.au/display/USER72/Append+Sub+Query
Can you review this and let us know if this solution could work for you, or if you have any follow-up questions here? I look forward to hearing back!
Kind Regards,
Dustin
Is this still the best way to calculate the % of subtotal?
Is this still the best way to calculate the % of subtotal?
Hi Daryle,
Since there have now been a couple of requests for this functionality, I have put together a custom advanced function to achieve this.
Upload the attached jar file through the plugin manager. The new function will be called "Sectioned Percentage of Total". Apply this to the column of choice, and select the column used for your sub-totals as the reference column. In the original example you would select MA2 as the reference column.
Let me know if you run into any problems with this.
Regards,
Nathan
Hi Daryle,
Since there have now been a couple of requests for this functionality, I have put together a custom advanced function to achieve this.
Upload the attached jar file through the plugin manager. The new function will be called "Sectioned Percentage of Total". Apply this to the column of choice, and select the column used for your sub-totals as the reference column. In the original example you would select MA2 as the reference column.
Let me know if you run into any problems with this.
Regards,
Nathan
I am going to set this ticket to closed for now, but if there is anything else I can do to help here, please just let me know and the case will be re-opened!
Regards,
Nathan
I am going to set this ticket to closed for now, but if there is anything else I can do to help here, please just let me know and the case will be re-opened!
Regards,
Nathan
Hi Nathan,
Could you attach the source code for the custom advanced function?. It woul be helpful to understand how to create one which receives the name of a column as a parameter (eg. the reference column in this case).
Good bye,
Gabriel
Hi Nathan,
Could you attach the source code for the custom advanced function?. It woul be helpful to understand how to create one which receives the name of a column as a parameter (eg. the reference column in this case).
Good bye,
Gabriel
Hi @Nathan
I hope you're doing well.
It's this function still working? I installed the plugin but i can't see the option on advanced function.
Looks like that doesn't work in crosstab, only in normal report. But if I do in normal report and after i change back is still working :D haha
Thanks
Evan
Hi @Nathan
I hope you're doing well.
It's this function still working? I installed the plugin but i can't see the option on advanced function.
Looks like that doesn't work in crosstab, only in normal report. But if I do in normal report and after i change back is still working :D haha
Thanks
Evan
Replies have been locked on this page!