Page 1 of 1

Filter for PFR and VPIP gap > 10

PostPosted: Sat May 12, 2018 7:05 pm
by Jackntigger
Hi, How would I make and expression filter such that I can run a search of all players who's VPIP and PFR have a gap of > 10?
Thanks

Re: Filter for PFR and VPIP gap > 10

PostPosted: Sun May 13, 2018 6:05 am
by Flag_Hippo
You can build a custom stat to display the difference between VPIP and PFR using the existing value expressions for those stats:

VPIP - PFR
Code: Select all
((cnt_vpip / (cnt_hands - cnt_walks)) * 100) - ((cnt_pfr / cnt_pfr_opp) * 100)

When the stat has been added to a custom all players report you can use this expression filter:

Code: Select all
#VPIP - PFR# > 10

Re: Filter for PFR and VPIP gap > 10

PostPosted: Sun May 13, 2018 1:47 pm
by Jackntigger
Oh, cool. Thanks.

Re: Filter for PFR and VPIP gap > 10

PostPosted: Tue Apr 25, 2023 3:56 am
by drfumanchu
Hello,

I wanted to use this statistic (vpip-pfr) on my hud, but the difference in vpip-pfr is displayed with several zeros after the decimal point.
I have read the documentation on custom stats, but I have trouble understanding it. I tried to use items like "trunc" or "round", but when I do so my statistic is invalid.

Can someone help me to have on my hud, the vpip-pfr stat proposed above, but without numbers after the decimal point, please?

Re: Filter for PFR and VPIP gap > 10

PostPosted: Tue Apr 25, 2023 5:34 am
by Flag_Hippo
If you set the 'Format Type' as 'Number' with the 'Decimal' option disabled it will get set automatically for you like this:

Code: Select all
format_number(((cnt_vpip / (cnt_hands - cnt_walks)) * 100) - ((cnt_pfr / cnt_pfr_opp) * 100), 0, false, false)

For HUD statistics you can also specify the number of decimals displayed in the HUD Profile Editor.

Re: Filter for PFR and VPIP gap > 10

PostPosted: Tue Apr 25, 2023 7:19 am
by drfumanchu
It works, thank you very much !

highfalutin