Pivot Table Pro

Post Reply
rmcdonald
Investor
Investor
Posts: 417
Joined: 19 Dec 2018, 02:33
Name: Robert McDonald
Location: Auckland, New Zealand
Company Name: Unicloud
Contact:

Pivot Table Pro

Post 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
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Pivot Table Pro

Post 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.
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Pivot Table Pro

Post 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?
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Pivot Table Pro

Post by support »

Try

Code: Select all

IFNULL({10:841},0)
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Pivot Table Pro

Post 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
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Pivot Table Pro

Post by support »

Probably cached. Try CTRL+F5 or try to create new report or try in other browser.
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Pivot Table Pro

Post by rennecke »

You are right. It's working.
Post Reply