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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sona_sa
Creator II
Creator II

EXPRESSION need

Hi Team,

I have a two field, Family and Income. Below is structure:

FAMILY    INCOME

A                  10

B                 20

C                 15
C is Father and A and B is child. Now I want the sum of income where C will have total value and rest of child is his own income. Output is below :

FAMILY            INCOME

C                         45

A                          10

B                          20


How I can make an expression for this.

Regards,

DK

Labels (1)
2 Solutions

Accepted Solutions
Frank_Hartmann
Master II
Master II

If(FAMILY='C',sum(Total INCOME), sum(INCOME))

View solution in original post

Frank_Hartmann
Master II
Master II

If(FAMILY='C',sum(Total <Year> INCOME), sum(INCOME))

View solution in original post

5 Replies
Frank_Hartmann
Master II
Master II

If(FAMILY='C',sum(Total INCOME), sum(INCOME))

sona_sa
Creator II
Creator II
Author

Hi Frank,

Thanks for reply,

I accept it, But I stuck here I have data year wise. Where D value is representing for every Year same figure. When I am clicking on Year, That time It is representing correct figure.

I attached my xls. for your reference.

Thanks

sona_sa
Creator II
Creator II
Author

Hi Frank,

Thanks for reply,

I accept it, But I stuck here I have data year wise. Where D value is representing for every Year same figure. When I am clicking on Year, That time It is representing correct figure.

I attached my xls. for your reference.

Thanks

Frank_Hartmann
Master II
Master II

If(FAMILY='C',sum(Total <Year> INCOME), sum(INCOME))

sona_sa
Creator II
Creator II
Author

Perfect.