You will see that the reference “magasin” in the table “FEC” is not always filled.
If it is blank I would like to multiplicate by the “TAUX” in the table “Magasin”.
Is this what you intend? I have changed MagasinFec in FEC to a reference list, and added a MontantMags that calculates the “pro-rata” for each operation. When a column is defined as a Reference list, using it for summary tables gives one line for each element of the list. Then I could define a MontantMag in the summary table by month (instead of a MontantMag<MAGASIN> for each <MAGASIN>), and use it in the global summary table.
If you want, you could define MAGASIN as a selector for FEC [by MagasinFec, TypeFec].
This not really what I want. I add to your solution an indentation but there are rows in the table “Type” which are empty but needed.
We must (I believe) use the table Type.
In the table “Type” in columns TotalDeno and Total, you will have an idea of what I want filtered by month and by Magasin.
My need is to have:
the datas of Spa when I select Spa, the datas of Boutique when I select boutique. and the sum of both data when I select both magasin or none.
For example in the sheet “Resultat Mag” I added a new column “Total1” which calculate the result for the first month for both magasin. I would like to have that for each month and each magasin
It’s clearer. The problem here is that grist doesn’t take in account multiple selection in a selector table. I think it would be necessary to add a checkbox column to define selections.
I’m not sure to understand your solution.
I made a sheet copy 2 and I inserted a column with chekbox in the table “magasin”.
Do you think it is possible to make a formula with the checked magasin?