Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
See why Qlik was recognized for the seventh year in a row – and discover how we can help you tackle your data integration challenges. Get the report
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

greater than value

Hi all

I have a data like below

My req is:  I need to get the data when I filter 3build I need only greater than 3days durion Renum should display

and for 5Build  I need to display more than 7Days Renum should display

by default it should display all the data.

below is expression which I used but it is not working.

=if([ Name]='3Build' and [ Duration]>=3,[ReNum])

if([Name]='5Build' and [Duration]>7,[ReNum],[ReNum]))

what is wrong in my exp?

   

ReNumNameDuration
A13Build1.2
A23Build2.2
A33Build3.5
A43Build4.5
A55Build6.7
A65Build7.6
A75Build8.6
A85Build5.4
A9ARP22.1
A10DRP33.1
A11CRP23.4
1 Solution

Accepted Solutions
migueldelval
Specialist
Specialist

Hi Sony,

Please Check my attach file.

Regards

Miguel del Valle

View solution in original post

21 Replies
migueldelval
Specialist
Specialist

Hi Sony,

Check this expression:

=if(

[Name]='3Build' and [Duration]>=3,

[ReNum],

if(

[Name]='5Build' and [Duration]>7,

[ReNum],

[ReNum]

)

)

Regards

Miguel del Valle

balar025
Creator III
Creator III

hello,

create variable called

vDuration = if(Name = '3Build',3,if(Name='5Build',8,0)

in expression you can write sum({<Duration={'>=$(vDuration)'}>}Renum)

Thanks

Ravi Balar

soniasweety
Master
Master
Author

thanks Miguel,

But it is giving error. syntax .

soniasweety
Master
Master
Author

No ravi.

its not wrking it is showing variable syntax is wrong.

migueldelval
Specialist
Specialist

Could you attach a Data Sample?

And Try with:

=if(

     [Name2]='3Build' and [Duration2]>=3,

     [ReNum2],

     if(

          [Name2]='5Build' and [Duration2]>7,

          [ReNum2],

          IF(

               [Name2]<>'5Build' and [Name2]<>'3Build',

          [ReNum2]

)))


Regards

Miguel del Valle de Gracia

soniasweety
Master
Master
Author

Now expression ok but same result all values are showing.

attaching sample data with out put.

migueldelval
Specialist
Specialist

Hi Sony,

Please Check my attach file.

Regards

Miguel del Valle

soniasweety
Master
Master
Author

No Luck Dear

soniasweety
Master
Master
Author

sorry I cant able to open qlikview file ,,am working on qliksense