My Report Expression filter No work

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

My Report Expression filter No work

Postby bitaoshi » Sun Mar 16, 2025 2:43 am

Hi!
I want to calculate and display "Number of times in 1st place / total number of times played" for spin in my report. I set it with an expression filter but it doesn't work. How can I set it to work?

Example: 100 times in 1st place / 300 times in total = 0.33
I want to display 0.33.
The formula I created is: cnt_finish_1/cnt_tourneys
bitaoshi
 
Posts: 11
Joined: Sat Oct 22, 2022 1:18 am

Re: My Report Expression filter No work

Postby Ventilatorrr » Sun Mar 16, 2025 7:17 am

You are on a good track. If you want to display this value in a report, you should first make a custom stat and then add it to the report.

To do that, go to Configure / Statistics / T / Players / Stats, and make a New stat with the following expression:
Code: Select all
(cnt_finish_1 / cnt_tourneys) * 100

Then add that stat to a Player or All Players report.
Ventilatorrr
Moderator
 
Posts: 93
Joined: Sun Jul 19, 2015 12:39 pm

Re: My Report Expression filter No work

Postby bitaoshi » Sun Mar 16, 2025 9:39 pm

Hi! Thank you.

"(cnt_finish_1 / cnt_tourneys) * 100" worked, but when I deleted "*100" to display up to 4 decimal places, it displayed "0".

Example 1: 100/300=0.333333333......
How can I get it to display "0.3333" or "33.33"?

Example 2: 150/462=0.3246753....
How can I get it to display "0.3246" or "32.46"?
bitaoshi
 
Posts: 11
Joined: Sat Oct 22, 2022 1:18 am

Re: My Report Expression filter No work

Postby bitaoshi » Sun Mar 16, 2025 9:46 pm

Sorry. I understand. I checked decimals and changed the formula from 0 to 4 and it worked. Thank you.
bitaoshi
 
Posts: 11
Joined: Sat Oct 22, 2022 1:18 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 65 guests

cron
highfalutin