Hi.
I've created a manual cross-tab so that I'll be able to get the percentage of the column for each group.
To do this (for each column) I created one formula, like so:
[tt]
// name: @lla107db
If UpperCase({GCRSp_BuPctOfSvrRcs;1.RateCode}) = 'LLA107DB' Then
{GCRSp_BuPctOfSvrRcs;1.Total}
[/tt]
Then, I created a second formula to show the percentage of the group. I did this because when groups had 0's for each row in the column, the percentage would show up as blank. I need it to show up as 0.
[tt]
// name: @pct_lla107db
({@lla107db} / Sum({@lla107db})) * 100
[/tt]
Is there any way to combine these two into one, to make maintenance easier? I tried combining the formulas but got incorrect data...did something wrong...
Thanks.
*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
I've created a manual cross-tab so that I'll be able to get the percentage of the column for each group.
To do this (for each column) I created one formula, like so:
[tt]
// name: @lla107db
If UpperCase({GCRSp_BuPctOfSvrRcs;1.RateCode}) = 'LLA107DB' Then
{GCRSp_BuPctOfSvrRcs;1.Total}
[/tt]
Then, I created a second formula to show the percentage of the group. I did this because when groups had 0's for each row in the column, the percentage would show up as blank. I need it to show up as 0.
[tt]
// name: @pct_lla107db
({@lla107db} / Sum({@lla107db})) * 100
[/tt]
Is there any way to combine these two into one, to make maintenance easier? I tried combining the formulas but got incorrect data...did something wrong...
Thanks.
*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!