sum of a calculation field and a numeric field gives invalid expression

78 views
Skip to first unread message

Les

unread,
Jun 12, 2020, 3:03:22 AM6/12/20
to mementodatabase
Hi guys, trying to calculate sum of a calculation field and a numeric field gives invalid expression

I am using the calculation to give an aggregate sum across the two distinct dependent fields, one euro one a calculated rate conversion from GBP

both fields are dependent fields, not sure if that has anything to do with it.., the problem only seems to be related to the calculated amount if I remove the numerical part of the calculation, thanks for any help

Les

Gilles Mons

unread,
Jun 12, 2020, 3:08:03 AM6/12/20
to Les, mementodatabase
Hello the, What are your formulas?


Gilles Mons

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/999f148c-89f0-48a0-a018-4f17cc317b44o%40googlegroups.com.

Les

unread,
Jun 12, 2020, 3:30:07 AM6/12/20
to mementodatabase
first calc is #{foreign curreny amount}*#{exchange rate}

the main one that gives the invalid is #{calculated amount}+#{amount}


On Friday, 12 June 2020 10:08:03 UTC+3, Gilles Mons wrote:
Hello the, What are your formulas?


Gilles Mons

Le ven. 12 juin 2020 à 09:03, Les <lesh...@gmail.com> a écrit :
Hi guys, trying to calculate sum of a calculation field and a numeric field gives invalid expression

I am using the calculation to give an aggregate sum across the two distinct dependent fields, one euro one a calculated rate conversion from GBP

both fields are dependent fields, not sure if that has anything to do with it.., the problem only seems to be related to the calculated amount if I remove the numerical part of the calculation, thanks for any help

Les

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memento...@googlegroups.com.

Gilles Mons

unread,
Jun 12, 2020, 3:56:41 AM6/12/20
to Les, mementodatabase
Ok and the third calculation?

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/1d226abe-041f-42e1-93d5-343f7db47ca2o%40googlegroups.com.
Gilles Mons

Les

unread,
Jun 12, 2020, 4:03:50 AM6/12/20
to mementodatabase
the amount is just a numeric not a calc


On Friday, 12 June 2020 10:56:41 UTC+3, Gilles Mons wrote:
Ok and the third calculation?

Le ven. 12 juin 2020 à 09:30, Les <lesh...@gmail.com> a écrit :
first calc is #{foreign curreny amount}*#{exchange rate}

the main one that gives the invalid is #{calculated amount}+#{amount}

On Friday, 12 June 2020 10:08:03 UTC+3, Gilles Mons wrote:
Hello the, What are your formulas?


Gilles Mons

Le ven. 12 juin 2020 à 09:03, Les <lesh...@gmail.com> a écrit :
Hi guys, trying to calculate sum of a calculation field and a numeric field gives invalid expression

I am using the calculation to give an aggregate sum across the two distinct dependent fields, one euro one a calculated rate conversion from GBP

both fields are dependent fields, not sure if that has anything to do with it.., the problem only seems to be related to the calculated amount if I remove the numerical part of the calculation, thanks for any help

Les

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memento...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/999f148c-89f0-48a0-a018-4f17cc317b44o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memento...@googlegroups.com.

Gilles Mons

unread,
Jun 12, 2020, 4:07:24 AM6/12/20
to Les, mementodatabase
You can make a screenshot of your database, for me it works ...

See photos....

Gilles Mons

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/75ebc172-347c-434d-926a-0743c957a60eo%40googlegroups.com.
Screenshot_20200612_100639_com.luckydroid.droidbase.jpg
Screenshot_20200612_100647_com.luckydroid.droidbase.jpg
Message has been deleted

Les

unread,
Jun 12, 2020, 11:01:49 AM6/12/20
to mementodatabase

Les

unread,
Jun 12, 2020, 11:05:27 AM6/12/20
to mementodatabase

ScreenClip.png

sorry those didnt upload very well, the calculated dependency is ok but the numeric is not, I doubt this makes any sense?

Les

unread,
Jun 12, 2020, 11:07:41 AM6/12/20
to mementodatabase

ScreenClip.png



On Friday, 12 June 2020 11:07:24 UTC+3, Gilles Mons wrote:

Les

unread,
Jun 12, 2020, 11:12:01 AM6/12/20
to mementodatabase
think it probably just doesnt like not having one of the fields completed? euros don't need calculating as its the default currency, only gbp, I just want it to spit out a balance :(

Gilles Mons

unread,
Jun 12, 2020, 11:13:30 AM6/12/20
to Les, mementodatabase
I'm going to have to translate all of this, and I'm coming back to you

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/591ae178-4669-4bc8-9db5-aa792e28c42ao%40googlegroups.com.
Gilles Mons

Gilles Mons

unread,
Jun 12, 2020, 11:19:21 AM6/12/20
to Les, mementodatabase
You can share your database in public mode without forgetting to:
- authorize reading
- authorize writing only to the owner
- authorize creation
- allow delete only to the owner
...

Gilles Mons

Les

unread,
Jun 12, 2020, 11:26:29 AM6/12/20
to mementodatabase

Gilles Mons

unread,
Jun 12, 2020, 11:27:57 AM6/12/20
to Les, mementodatabase
I do not have access ...

Gilles Mons

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/e07b7ed0-1ab1-4e72-acbc-9f6efecd94eco%40googlegroups.com.

Les

unread,
Jun 12, 2020, 11:28:49 AM6/12/20
to mementodatabase
the exchange rates for dates are in a linked library..

Gilles Mons

unread,
Jun 12, 2020, 11:31:59 AM6/12/20
to Les, mementodatabase
You did not give me access to the first base the second base is OK
Gilles Mons

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/e7576302-d6f0-43e7-9821-c818af2d40fdo%40googlegroups.com.

Les

unread,
Jun 12, 2020, 1:16:05 PM6/12/20
to mementodatabase
sorry, not sure what is wrong, er is list of rates db, exchange rate is the db which one did you access?

Gilles Mons

unread,
Jun 12, 2020, 1:19:52 PM6/12/20
to Les, mementodatabase
The rate base I have access to ...

Not the main base ....

Gilles Mons

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/130873e2-1294-4d78-b6c3-a461893b82e1o%40googlegroups.com.

Les

unread,
Jun 12, 2020, 1:23:15 PM6/12/20
to mementodatabase

Gilles Mons

unread,
Jun 12, 2020, 1:25:59 PM6/12/20
to Les, mementodatabase
It' s ok

Gilles Mons

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/a540e9a9-d0c7-44f0-96f6-ada9c921d8e0o%40googlegroups.com.

Gilles Mons

unread,
Jun 12, 2020, 1:28:29 PM6/12/20
to Les, mementodatabase
Ok I was able to create copies of your databases now that it is the field that is causing you problems
Gilles Mons

Gilles Mons

unread,
Jun 12, 2020, 1:48:02 PM6/12/20
to Les, mementodatabase
Première chose que je ne comprends pas dans votre base il n'y a aucun champs défini comme "Identifiants d'enregistrements"

Comment est-ce possible ?

Gilles Mons

Les

unread,
Jun 12, 2020, 1:57:20 PM6/12/20
to mementodatabase
i simplyfied it for example purposes

Bill Crews

unread,
Jun 12, 2020, 2:18:29 PM6/12/20
to Gilles Mons, Les, mementodatabase
What requirement is this? Maybe there is something about Memento I don't understand? Entry name, but not record-ID.

Ernst Moser

unread,
Jun 12, 2020, 2:47:44 PM6/12/20
to mementodatabase
Hallo
Was gibt das " Erste Berechnungsfeld "zurück ( Text , Datum, Zahl , ). Die 2 Berechnung kann mit Text Nicht Rechnen , also muss die 1 Berechnung auch eine Zahl zurück geben .

Hi
What does the "first calculation field" return (text, date, number,). The 2 calculation cannot calculate with text, so the 1 calculation must also return a number.

Beth Dixon

unread,
Jun 12, 2020, 3:53:53 PM6/12/20
to Ernst Moser, mementodatabase
Wondering if you sent a screenshot of your code/formula by going to "edit library" , selecting the calculation field and/ or field you are having trouble with..ie: edit field... it might help Gilles and Ernst help you better?  

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/b7874626-106c-416e-81ed-d7ab6289cfa9o%40googlegroups.com.

Les

unread,
Jun 12, 2020, 4:57:57 PM6/12/20
to mementodatabase

Les

unread,
Jun 12, 2020, 5:02:19 PM6/12/20
to mementodatabase
just trying to add a calculated result to a numerical result across dependencies to gain an aggregate result

Les

unread,
Jun 12, 2020, 5:11:01 PM6/12/20
to mementodatabase
its probably just the fact that it meets a blank numeric field and throws up expression invalid because of it?

Gilles Mons

unread,
Jun 13, 2020, 12:24:02 AM6/13/20
to Les, mementodatabase
Hello Les,

I think it will take me the complete base because the self-filling I did not know and this is what I get ... see photo

Gilles Mons

To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/a9a0ceb2-cfc8-43aa-91d7-ae77c9d266bco%40googlegroups.com.
Screenshot_20200613_062204_com.luckydroid.droidbase.jpg

Ernst Moser

unread,
Jun 13, 2020, 2:13:38 AM6/13/20
to mementodatabase
Hallo Les
Auf denen Bild von deiner Datenbank ist die dritte Berechnung, die basiert auf das letzte Feld . Das ist aber ein TEXT . Somit ist die dritte Berechnung nicht gültig. Da sich II Berechnung auf III stützt ist auch diese nicht gültig. Ändere dein letztes Feld in eine Zahl.


Hello Les
On the picture from your database is the third calculation based on the last field. But that's a TEXT. The third calculation is therefore not valid. Since II calculation is based on III, this is also not valid. Change your last field to a number.

Gilles Mons

unread,
Jun 13, 2020, 2:24:49 AM6/13/20
to Ernst Moser, mementodatabase
Yes I think the problem comes from "Exchange rate" which is a text ...
While in the ER base it is a number and Auto-Fill the line as a text ....

Gilles Mons

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.

Gilles Mons

unread,
Jun 13, 2020, 2:29:36 AM6/13/20
to Ernst Moser, mementodatabase
With Exchange rate in "real number" there are no more calculation faults

Gilles Mons

Le sam. 13 juin 2020 à 08:13, Ernst Moser <ernst...@gmail.com> a écrit :
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.

Les

unread,
Jun 13, 2020, 4:09:40 AM6/13/20
to mementodatabase
Brilliant, yes that sorted it! thanks Gilles & everyone else who chipped in, the cat rescue charity accounts will balance thanks to your help :)


On Saturday, 13 June 2020 09:29:36 UTC+3, Gilles Mons wrote:
With Exchange rate in "real number" there are no more calculation faults

Gilles Mons

Le sam. 13 juin 2020 à 08:13, Ernst Moser <ernst...@gmail.com> a écrit :
Hallo Les
Auf denen Bild von deiner Datenbank ist die dritte Berechnung, die basiert auf das letzte Feld . Das ist aber ein TEXT . Somit ist die dritte Berechnung nicht gültig. Da sich II Berechnung auf III stützt ist auch diese nicht gültig. Ändere dein letztes Feld in eine Zahl.


Hello Les
 On the picture from your database is the third calculation based on the last field.  But that's a TEXT.  The third calculation is therefore not valid.  Since II calculation is based on III, this is also not valid.  Change your last field to a number.

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memento...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages