Math Operations with Functions

Stimulsoft Reports.WEB discussion
Post Reply
brett.macpherson
Posts: 42
Joined: Mon Apr 13, 2020 7:29 am

Math Operations with Functions

Post by brett.macpherson »

Hi,
trying to do some math operations with some of the built in function which seems trivial but i can get it to work. If i create a simple graph that plots this {DaysInMonth(SiteStatistics.Date)} with an arguement with date and it works no problems. What i want to do is variable / {DaysInMonth(SiteStatistics.Date)} and it doesn't work. I've even tried simply {DaysInMonth(SiteStatistics.Date)} + 2 and it still doesn't work. how do i do math with the results of these built in functions?

Thanks
Brett
Attachments
Capture.PNG
Capture.PNG (127.89 KiB) Viewed 1063 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Math Operations with Functions

Post by Lech Kulikowski »

Hello,

Please check the following expression:
DaysInMonth(SiteStatistics.Date) + 2

Thank you.
Attachments
Screenshot 2021-06-22 103124.png
Screenshot 2021-06-22 103124.png (101.73 KiB) Viewed 1057 times
brett.macpherson
Posts: 42
Joined: Mon Apr 13, 2020 7:29 am

Re: Math Operations with Functions

Post by brett.macpherson »

Hi Lech,
the suggestion does not work


i'm editing the dashboard https://demo.stimulsoft.com/#Net/Dashbo ... Statistics
and add your equation to the graph and it doesn't work.

Regards,
Brett
Attachments
Capture1.PNG
Capture1.PNG (122.96 KiB) Viewed 1049 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Math Operations with Functions

Post by Lech Kulikowski »

Hello,

We still couldn't reproduce the issue.

Thank you.
Attachments
Screenshot 2021-06-25 162322.png
Screenshot 2021-06-25 162322.png (195.75 KiB) Viewed 1043 times
brett.macpherson
Posts: 42
Joined: Mon Apr 13, 2020 7:29 am

Re: Math Operations with Functions

Post by brett.macpherson »

Hi Lech,
can you put the equation in the values field, not the arguments field.
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Math Operations with Functions

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#4283
Post Reply