Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
jaina
Contributor III
Contributor III

Get Measures for new Calculated measure field

Hi, 

Can anyone help? I have a measure field named Delivered Quantity where

Delivered Quantity = sum(aggr(sum(DISTINCT [Delivery Qty]), [Sales Order],[Sales Order Item No.]))

and field of Order Qty.

Now, i need to have another measure field that will match if Delivered Quantity = Order Qty.

How can I do that? 

Labels (2)
1 Solution

Accepted Solutions
Kushal_Chawda

may be below. Assuming sum([Order Qty]) is your measure. 

sum(

aggr(

if(

sum(DISTINCT [Delivery Qty])=sum([Order Quantity]),

<here write what you want to do if condition matched>

)

,

[Sales Order],[Sales Order Item No.])

)

View solution in original post

2 Replies
Kushal_Chawda

may be below. Assuming sum([Order Qty]) is your measure. 

sum(

aggr(

if(

sum(DISTINCT [Delivery Qty])=sum([Order Quantity]),

<here write what you want to do if condition matched>

)

,

[Sales Order],[Sales Order Item No.])

)

jaina
Contributor III
Contributor III
Author

Thank you! It worked. I also tried to add as variable.