Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression

=sum({$<[PCI_Op_Name]={">=$(v_value)"}>}Direct_Cost) expresssion is ok butt on chart no value is displayed

v_value=10000

kindly check the expression

1 Solution

Accepted Solutions
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

only  can compare or filtered  numerric  through >= or <= symbol.

but varchar field can filtered through = symbol


View solution in original post

7 Replies
manideep78
Partner - Specialist
Partner - Specialist

Try like this:

Sum({<[PCI_Op_Name]={">=$(=v_value)"}>}Direct_Cost)

Hope this helps you.

Regards,

Manideep

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

i think  expression is worng. PCI_Op_Name field is varchar or numeric ,if varchar  [PCI_Op_Name]={">=$(v_value)"} expression won't work. only greater then or less then operator  used for numeric values comparsion.

please explain what your trying achive thorugh expression. we can able to help.

Not applicable
Author

Is the the PCI_Op_Name a string value?

So for example.

PCI_Op_Name =  Joe Bloggs

v_value = 10000

In your set analysis you are returning only  Joe Bloggs (PCI_Op_Name) > 10000 which would return Null.

What are you trying to achieve?

Not applicable
Author

PCI-OP_name is varchar

when i am using = sign it works butt when i used >= sign it does not work

Not applicable
Author

What values exist in your field?

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi

only  can compare or filtered  numerric  through >= or <= symbol.

but varchar field can filtered through = symbol


Not applicable
Author

I am assuming that you have numeric and string values in the field.

So something like this should work

=Sum({<

  PCI_Op_Name = {"=IsNum(PCI_Op_Name) =-1"} - {"<10000"}

  >} Direct_Cost)