Here is what I am doing:
M00:
If DateDiff('m',CurrentDate,{POCMonths.PocMonth}) = 0
Then {@Sales} else 0
@Sales:
({POCMonths.FabRate}*{POCMonths.FabHr}) + ({POCMonths.MachRate}*{POCMonths.MachHr}) + {POCMonths.BOMcost} +
({POCMonths.EngRate}*{POCMonths.EngHr}) + {POCMonths.AdditionalProfit} + {POCMonths.MonthProfit}
Count0:
if {#count0} > 0 then Sum ({@M00}, {@Proj5}) / {#count0} else 0
I have a table with 16 jobs in it in which I am getting the sales value. the 16 jobs have the first 5 characters the same (@proj5), so I am combining them as an entity. the problem is the detail is repeated in all 16 lines so my math is 16 times what it should be when I am totalling. So I did a count and divided the total by the count and it works. The problem is I can't then get running totals or subtotals of the count0. It won't let me, it is not an option in the formula bar, the count0 is not present for selection. How can I get round this or how do I do it?
M00:
If DateDiff('m',CurrentDate,{POCMonths.PocMonth}) = 0
Then {@Sales} else 0
@Sales:
({POCMonths.FabRate}*{POCMonths.FabHr}) + ({POCMonths.MachRate}*{POCMonths.MachHr}) + {POCMonths.BOMcost} +
({POCMonths.EngRate}*{POCMonths.EngHr}) + {POCMonths.AdditionalProfit} + {POCMonths.MonthProfit}
Count0:
if {#count0} > 0 then Sum ({@M00}, {@Proj5}) / {#count0} else 0
I have a table with 16 jobs in it in which I am getting the sales value. the 16 jobs have the first 5 characters the same (@proj5), so I am combining them as an entity. the problem is the detail is repeated in all 16 lines so my math is 16 times what it should be when I am totalling. So I did a count and divided the total by the count and it works. The problem is I can't then get running totals or subtotals of the count0. It won't let me, it is not an option in the formula bar, the count0 is not present for selection. How can I get round this or how do I do it?