on 03-15-2014 9:13 AM
Just use the In calculation context method
This gives percentage per Channel Code:
=[Amount Of promary Channel]/Sum([Amount Of promary Channel]) in ([Channel Code])
This gives percentage of the grand total:
=[Amount Of promary Channel]/(Sum([Amount Of promary Channel]) in Block)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajib, As per my understanding, you want to show percentage on the base of subtotal.
that means if you set break on the Compony then percentage column should contain the percentage calculated on the basis of compony subtotal.
like this...(just one block of break)
then just use the simple percentage function ( =percentage(amount) ), this will automatically calculate the percentage based on subtotal.
and if you want to show 100% in subtotal row also then you can use formula= (amount/sum(amount)),
i think we dont need to use contex operator here.
formula for AHW total row = amount/sum(amount)
Let me know if this will help you,
Thanks,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mustafa I wrote formula in subtotal row formula for AHW total row = (amount/sum(amount)) it will calculate on the basis of total for break i..e if you apply break on compony then it will calculate on the basis of total for one compony thats why it doesnt affect by sum(amount)(as it will calculate the sum for only one compony) Thanks, Nitin
Hi Rajib,
Try the below:
[Amount of Primary Channel] / Sum([Amount of Primary Channel]) In ([Company])
Similar formula for a case in my report worked.
Regards,
Srilakshmi B
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try These .
=[Amount Of promary Channel] / (Sum([Amount Of promary Channel]) In Block )
=[Amount Of promary Channel] / (Sum([Amount Of promary Channel]) In Report )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil ,
Thanks a lot but it its not working !
I have added break on the company code on same block to group it, subtotal is correct but the % is getiing calculated based on the grand total , any idea
In the following example i want each amount of the primary channel to be divieded by Subtotal value to get the % on the same report block - possible ?
Hi,
=[Amount Of promary Channel] / (Sum([Amount Of promary Channel]) In Break )
But If you want 2 values
1) Detail rows % for subtotal in company
2) Company wise % for Grand Total
Then use following .
One which you were using in Table rows previously .
&
the formula from me will be in Sub Total for Company Code .
Hi Nikhil.
Did you manage to work this out? I have the same problem, and I've tried 'in block', in section', 'in break' etc but they all give the same result. Like you, I need the percentages in each row to be based on the total for that break or section, not on the overall report total. Easy in BW!
Thanks,
Patrick
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.