Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
5 years ago
Solved

Add a column with measurement

What such a community

I have a doubt, I have a database in which the attendance of people is stored and through a formula which consists of several IFS and CALCULATES, which add and count the criteria of attendance can give us the total number of hours to pay a person for example:

Total Hours = CALCULATE(COUNT(tblHourssUstance[Criterion]),tblHorassistence[Criterion] = "VACATIONS")*8 + CALCULATE(COUNT(tblHourssIstence[Criterion]),tblHorassistence[Criterion] = "Line Stop")*4

Which I show on a table and thus be able to facilitate the payroll, the detail happens as seen in the table, the final result should be 16k hours, not 41k
There is some way in which this matrix can be added, line by line since I require the total of the sum of that matrix to be able to create a visualization by area

Any comments would be greatly appreciated

Best regards!

JoseLuisAGZZ_0-1630104312886.png