I’m facing some troubles with the coding in the report designer.
I’ve read the tutorials that are in the site, but it wasn’t enough to solve my doubt.
Question 1:
How could I change the value of “variable to change”? As the picture below.

I want the “Variable to change” to receive the sum of the column “consumo”. How can I do this by the code?
I’ve already tried to do it using like “Text2.Text = “test” “, but even this don’t work.
Question 2:
Where do I put the “code”? Should I create a class to it, or I just make the methods anywhere after the “Designer generated code”?