Hello
I’m getting back to you because a new problem is causing me concern.
A little reminder:
I record my electricity consumption daily. As a former Excel user, I created a lot of intermediate calculation columns and I was advised to use virtual columns to lighten the Google Sheet.
My problem:
First, I want to accumulate daily consumption. How can I accumulate today’s values with the cumulative values from the previous day?
I created a virtual column: ConsoJour and I wrote the following formula:
If(the entry corresponds to the first line of the table then I cumulate the different readings otherwise, I cumulate the different readings of the day with the cumulation of the day before)
Which gives me the following formula:
If([_RowNumber]=2,
[Conso Bleu HP]+[Conso Bleu HC]+[Conso Blanc HP]+[Conso Blanc HC]+[Conso Rouge HP]+[Conso Rouge HC],
[Conso Bleu HP]+[Conso Bleu HC]+[Conso Blanc HP]+[Conso Blanc HC]+[Conso Rouge HP]+[Conso Rouge HC] + LOOKUP(
MAXROW(“Releve quotidien”, “_ROWNUMBER”, ([Le] < [Le])),
“Releve quotidien”,
“ConsoJour”,“ConsoJour”)
)
The formula is validated by the appSheet.
When I save, the data refresh is blocked.
I hope that my speech has helped you understand my problem. Thank you for your always valuable help.
Have a nice day everyone

