Page 1 of 1

Pivot Table Pro

Posted: 18 Jan 2022, 01:04
by rmcdonald
In pivot table pro field settings when we have a mysql formula field it is not recognising the field as a number and therefore only sets it to be counted - when we need to have the mathematical functions available to sum etc

Re: Pivot Table Pro

Posted: 18 Jan 2022, 09:58
by support
Formula need return number or zero. If it returns empty text or number with comma then app things it's string and that is why there is no SUM function.

Re: Pivot Table Pro

Posted: 03 Aug 2022, 12:48
by rennecke
Hello.
I've a similar issue and can not find the failure:
I have a function calculating the SUM of a numeric field [785].
function_10.png
This function is than used in a MySQL-formula:
MySQL-Formula.png
As I thought, that maybe {10:841} gives NULL or empty string ("") back in case there is no link in [841] I tried the following as well:

Code: Select all

IF({10:841}=NULL,0,{10:841})

Code: Select all

IF({10:841}="",0,{10:841})
But no effect. List shows empty value instead of 0 % (see first row).
ListView.png
I always get only COUNT in the Pivot Tables Pro field selection:
fields_PivotTablesPro.png
What am I doing wrong?

Re: Pivot Table Pro

Posted: 03 Aug 2022, 15:20
by support
Try

Code: Select all

IFNULL({10:841},0)

Re: Pivot Table Pro

Posted: 03 Aug 2022, 16:56
by rennecke
Thanks for the hint.
At least the MySQL-Formula is working. I get a value for all:
List_with_0.png
But the field selection in Pivot Tables Pro is just saying COUNT:
Fields_PivotPRO.png

Re: Pivot Table Pro

Posted: 03 Aug 2022, 17:01
by support
Probably cached. Try CTRL+F5 or try to create new report or try in other browser.

Re: Pivot Table Pro

Posted: 03 Aug 2022, 18:07
by rennecke
You are right. It's working.