Count filter / virtual column

Hello,

I have two tables

-First parent table โ€œBDD BONS ENLEVEMENTโ€

-Second childrenโ€™s table โ€œBDD DETAIL BONS ENLEVEMENTโ€

I want to count the number of rows present in the child table with the following formula:

COUNT (
FILTER (
โ€œBDD DETAIL GOOD REMOVALโ€,
([PRODUCT NUMBER CORRECT COLLECTION] = [_ THISROW]. [PRODUCT NUMBER CORRECT COLLECTION])
)
)

In the parent table, it works when I insert the formula in a virtual column, but it doesnโ€™t work when I insert it in a table column.

Does anyone know why?

0 2 115
2 REPLIES 2

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Renaud

This is because virtual columns are calculated on the fly, so results are always correct, provided calculation reaches its end.
Real/physical columns are calculated only on editing.

In your case, I suspect this is what happens.

Hello,

Thank you Aurรฉlien for your return and happy New Year everyone!
In the column [PRODUIT NOMBRE REMPLACEMENT] which is in my parent table ยซ BDD AFFAIRES ยป, I want to count the number of rows fulfilling the conditions in my child table ยซ BDD AFFAIRES DETAIL ยป.

Elements :

-Parent table: ยซ BDD AFFAIRES ยป, key column [CODE AFFAIRE]

-Childrenโ€™s table: ยซ BDD AFFAIRES DETAIL ยป key column [CODE AFFAIRE DETAIL]

In the ยซ BDD AFFAIRES DETAIL ยป I have to count the lines
CODE AFFAIRE = CODE AFFAIRE of ยซ BDD AFFAIRES DETAIL ยป
[PRODUIT TYPE INSTALLATION] = ยซ REMPLACEMENT ยป

I go through a virtual column to do the counting with the formula below and it works very well

COUNT(
FILTER(
โ€œBDD AFFAIRES DETAILโ€,
AND(
ISNOTBLANK([PRODUIT TYPE INSTALLATION])
([PRODUIT TYPE INSTALLATION]=โ€œREMPLACEMENTโ€),
([CODE AFFAIRE]=[_THISROW].[CODE AFFAIRE]))
)
)

My issue is the following,
I cannot retrieve the result of the virtual column [COLONNE VIRTUELLE PRODUIT NOMBRE DE REMPLACEMENT] to insert it into my table in the column ยซ PRODUIT NOMBRE DE REMPLACEMENT ยป
Can anyone help me?
It would be so much easier if we could put the formula in the table rather than in a virtual column!
Cordially
Renaud

Top Labels in this Space