Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ignalamos
Contributor
Contributor

How to add the total of a field independently?

Hello!

I have 2 fields that I need to compare in a table, the first "R1" is recorded every day. The second "R2", only some days of the month. Something like that:

FechaR1R2
01/11/20173
02/11/20174
03/11/2017310
04/11/20173
05/11/20174
06/11/2017310
07/11/20174
08/11/20174
Suma real2820
Suma QV620

My problem is that when adding each field [with a Sum (Total <Month> R1)], it gives me as a result the sum of the days in which both records were taken. [That is, in the example it would only take the days 03/11 and 06/11 and it would give me as a result R1 = 6 and R2 = 20]

I need the formula to get the real sum of R1 (28) and be able to calculate R2 / R1 on a weekly basis

1 Reply
OmarBenSalem

just create a table with Fecha as dimension; and sum(R1) and sum(R2) as measures:

Capture.PNG