View Full Version : Total Profit Stat
Pinocchio
07-22-2009, 11:56 AM
Sorry for being stupid.
Im trying to make an Total Profit stat by adding 'netamountwon' and 'rakeback'
where am i going wrong with this?
<Stat GroupName="Default" ColumnName="Total Profit" ValueExpressions="Sum(ph.NetAmountWon)+(ph.Rakeback)="Total Profit") Evaluate="Total Profit" ColumnHeader="$ Profit" ColumnFormat="$0.00" ColumnWidth="*" Tooltip="Total Profit" />
TY
Edit: Why can i post code?
fozzy71
07-22-2009, 01:05 PM
Use the PHP code tags.
This forum doesn't like the html style inward facing arrows : < It doesn't like these things >
You already know about the Rakeback line in the graph I assume. :rolleyes:
nofolmholdm
07-22-2009, 01:32 PM
This is what I do (for 27% from Full Tilt)
<Stat GroupName="Default" ColumnName="TotalWin" ValueExpressions="Sum(PH.RakeAmount)/100.0*0.27 as RakeBackAmount;Sum(PH.NetAmountWon)/100 as NetWin" Evaluate="(RakeBackAmount+NetWin)" ColumnHeader="TotalWin" ColumnFormat="$0.00" ColumnWidth="*" Tooltip="TotalWin" />
I don't know what your code looked like, but remember that NetAmountWon is not in dollars. It is in cents (dollars*100).
fozzy71
07-22-2009, 01:50 PM
I will forward this to the developer for a reply.
nofolmholdm
07-22-2009, 02:17 PM
I will forward this to the developer for a reply.
Dunno what the developer needs to do. I was just sharing my stat w/ the OP.
Pinocchio
07-22-2009, 06:03 PM
Dunno what the developer needs to do. I was just sharing my stat w/ the OP.
Thanks, got it working
Holdem_LOL
08-01-2009, 09:56 AM
This is what I do (for 27% from Full Tilt)
<Stat GroupName="Default" ColumnName="TotalWin" ValueExpressions="Sum(PH.RakeAmount)/100.0*0.27 as RakeBackAmount;Sum(PH.NetAmountWon)/100 as NetWin" Evaluate="(RakeBackAmount+NetWin)" ColumnHeader="TotalWin" ColumnFormat="$0.00" ColumnWidth="*" Tooltip="TotalWin" />
I don't know what your code looked like, but remember that NetAmountWon is not in dollars. It is in cents (dollars*100).
could someone make something like this for pokerstars?
translating the FPPs into $
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.