Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

numeric compare -

Took over for somebody and am very new at this. The person left the company.

I seem to be fine when comparing alpha but am having trouble when it's a numeric column AND the issue might also be the GreaterThan sign.

I need to also include only items where the quantity is > 1000.

sum({<DNOY = {"<=$(=DayNumberOfYear(Today()))" },Year= {"$(=Max(Year))"} ,[Drop Ship Code (Y or N)]= {'N'}, [Quantity Ordered] > 1000 ,  [Order Generation Number]= {0}, [Order Type] = {'O'}, [Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Shipped]) /

sum({<DNOY = {"<=$(=DayNumberOfYear(Today()))" },Year= {"$(=Max(Year))"} ,[Order Generation Number]= {0},[Drop Ship Code (Y or N)]= {'N'},[Order Type] = {'O'},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Ordered])

6 Replies
Anonymous
Not applicable
Author

I think this will work:

[Quantity Ordered]={">1000"}

Regards,

Michael

Not applicable
Author

The bold sytax doesn't seem to be working. I need to do one thing if the Item Class = 03 (which is an alpha field) and another if it doesn't equal 03.     Sorry for the elementary questions but I've still not been to training and can't find any examples of how expression syntax  works.

( sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"} ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {'03'}, [Quantity Ordered]={"<100000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Shipped]) +

sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"}  ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {"<>03"}, [Quantity Ordered]={"<1000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Shipped])) /

( sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"}  ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {'03'}, [Quantity Ordered]={"<100000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Ordered]) +

sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"}  ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {"<>03"}, [Quantity Ordered]={"<1000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Ordered]))

Not applicable
Author

The bold sytax doesn't seem to be working. I need to do one thing if the Item Class = 03 (which is an alpha field) and another if it doesn't equal 03.     Sorry for the elementary questions but I've still not been to training and can't find any examples of how expression syntax  works.

( sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"} ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {'03'}, [Quantity Ordered]={"<100000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Shipped]) +

sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"}  ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {"<>03"}, [Quantity Ordered]={"<1000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Shipped])) /

( sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"}  ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {'03'}, [Quantity Ordered]={"<100000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Ordered]) +

sum({<[Dayend Date] = {">=$(=Max([Dayend Date]))"}  ,[Drop Ship Code (Y or N)]= {'N'}, [Order Generation Number]= {0}, [Order Type] = {'O'}, [Item Class]=  {"<>03"}, [Quantity Ordered]={"<1000"},[Update Demand] = {'Y'},[Line Item Type] = {'I'}>} [Quantity Ordered]))

Not applicable
Author

The alpha comparison of 03  doesn't seem to be working. I need to do one thing if the Item Class = 03 (which is an alpha field) and another if it doesn't equal 03.     Sorry for the elementary questions but I've still not been to training and can't find any examples of how expression syntax  works.

[Item Class]=  {"<>03}

Not applicable
Author

The alpha comparison of 03  doesn't seem to be working. I need to do one thing if the Item Class = 03 (which is an alpha field) and another if it doesn't equal 03.     Sorry for the elementary questions but I've still not been to training and can't find any examples of how expression syntax  works.

[Item Class]=  {"<>03"}

MayilVahanan

HI

[Item Class] -=  {"03"}

This exclude the 03 value in it..

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.