Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Aggregation help

Hi Experts,

Can any one please help me to get Yes on third row when all the condition are true. Now I am getting No in all 3 rows.

I am not able to attach the app.

Please find the backend script

Table1:
Load * Inline [
ID,StartDate,End Date,Prod,Indication, Style
145863,05/01/2019,08/12/2019, Mobile,A,                                
145863,05/01/2019,08/12/2019, Mobile,B,
145863,05/01/2019,08/12/2019, Mobile,C,Compact
];

 

Front end expression:

  if( Trim(Prod)= 'Mobile' and Indication='C'  and  Style = 'Compact 'and ( Year(StartDate) - Year([End Date]))<=3,'Yes','No')

Thanks in advance.

Test app.png

 

1 Solution

Accepted Solutions
sunny_talwar

Try this

If(Trim(Prod) = 'Mobile' and Indication = 'C' and Style = 'Compact' and (Year(StartDate) - Year([End Date])) <= 3,
'Yes',
'No')

View solution in original post

2 Replies
vvira1316
Specialist II
Specialist II

Style = 'Compact '

There is a space aster t at the end of Compact

Style = 'Compact'
sunny_talwar

Try this

If(Trim(Prod) = 'Mobile' and Indication = 'C' and Style = 'Compact' and (Year(StartDate) - Year([End Date])) <= 3,
'Yes',
'No')