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: 
Sxbbb
Creator III
Creator III

check whether Machine Runlot information exists in Machine FA

I want to check whether Machine Runlot information exists in Machine FA or not. 

If Machine Runlot does not exist in Machine FA, count Base WOrk Output.

Sxbbb_0-1709026082151.png

 

Sxbbb_1-1709026194830.png

 

8 Replies
LRuCelver
Partner - Creator III
Partner - Creator III

You can use SubStringCount to check whether a substring exists in a string.

Sxbbb
Creator III
Creator III
Author

I tried it and it's correct. But I want to count Base Work Output which is 0 and QTY FA = 'N/A '. 

I want the sum count Base Work Output

I tried but it's not correct.

Sxbbb_1-1709696453556.png

Sxbbb_2-1709696584500.png

 

 

LRuCelver
Partner - Creator III
Partner - Creator III

I'm assuming the column "Base WOrk Output" is the field "WorkOrder_BaseOutput".

Since it is a dimension in the table, the count distinct will always return 1. If you want to count the number of times the combination of dimensions appears in you data, drop the distinct from your expression. You might also consider adding the else-case to the if statement if it is wanted.

If my assumption is incorrect, please provide some sample data and a mockup of what the result should be, given the sample data.

Sxbbb
Creator III
Creator III
Author

Yes, I would like to know how many Base Work Outputs that Machine Runlot does not have in Machine FA.

What do I have to do?

LRuCelver
Partner - Creator III
Partner - Creator III

Removing "distinct" from the count might be enough, depending on your data.

Sxbbb
Creator III
Creator III
Author

Invalid value I need to put the values ​​in a summary table.

Sxbbb_0-1709715757087.png

 

LRuCelver
Partner - Creator III
Partner - Creator III

Can you please share a small data sample as well as how and with what dimensions you need to calculate the values?

Sxbbb
Creator III
Creator III
Author

Sxbbb_0-1709717530415.png

Sxbbb_1-1709717558458.png

 

Machine FA :

Sxbbb_2-1709717617450.png

 

Machine Runlot :

Sxbbb_3-1709717656465.png