on 09-01-2012 8:37 PM
Income Statement | Year 2010 | Year 2011 | Year 2012 |
---|---|---|---|
Turnover | 1000 | 1100 | 1200 |
Cost of Sales | 500 | 550 | 600 |
Gross profit | 500 | 550 | 600 |
Margin | 0 | Gross profit (2011)/Grossprofit (2010)-1 | Gross profit (2012)/Grossprofit (2011) -1 |
Hi Warren,
Are you going to display the margin only in this template?
My suggestion would be to use excel formula to calculate this and send this data back to the database. You can definitely do this using script logic, but then you will have to execute the script using DM package. This calculation is not too complex, and I think its easier using the excel formula.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilanjan
Thanks for quick response,
I am going to display in the template. I have few confusions
Thanks
Warren
Hi Warren,
As elucidated by Nilanjan depends on your requirement it's much better to use Excel formulas.
Normally I use script logic when the data used in calculation comes from differents process.
In your case, if you want to send the Margin to another model (question 1), you can write a script only to send the these data.
About second question, yes, if you refresh the report and new members are add, you'll need to maintain the formula.
But, if after all, you decide to use a script, it will be something like:
*XDIM_MEMBERSET ENTITY = 1000
*XDIM_MEMBERSET ACCOUNT=Gross profit
*XDIM_MEMBERSET INPUTCURRENCY=USD
*WHEN ACCOUNT
*IS Gross profit
*REC(ACCOUNT="Margin",EXPRESSION=( %VALUE% / [TIME].[TMVL(-12,%TIME_SET%)] ) - 1)
*ENDWHEN
Regards,
Lucas
Thanks Nilanjan....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.