Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Sum a column if two tables have one to many relationship?

I have attached sample file. please help me to sum by grouping ..

1 Solution

Accepted Solutions
aarkay29
Specialist
Specialist

May be this:

sum(aggr(DivisionProcedureCNT,YearMonthNBR,CPT,VisitTypeCD,DivisionNM))

View solution in original post

4 Replies
avinashelite

Try this

Aggr(sum(DivisionProcedureCNT),CPT)

Anonymous
Not applicable
Author

Nope, It does not work.

aarkay29
Specialist
Specialist

May be this:

sum(aggr(DivisionProcedureCNT,YearMonthNBR,CPT,VisitTypeCD,DivisionNM))

Anonymous
Not applicable
Author

I think this works. Thank you very much. That was easy I guess! I did not try that before!