Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Sxbbb
Creator III
Creator III

want to count Base WOrk Output where SubStringCount =0 and QTY FA = 'N/A' .Table Summary

I Have Data 

Sxbbb_4-1710212788530.png

Sxbbb_5-1710212824200.png

 

 

Machine FA :

Sxbbb_2-1710212519994.png

 

Machine Runlot :

Sxbbb_3-1710212519883.png

column "Base WOrk Output" is the field "WorkOrder_BaseOutput".

I want to count Base WOrk Output where SubStringCount =0 and QTY FA = 'N/A' .Table Summary 

Sxbbb_6-1710213393717.png

I tried and the value is incorrect.

Sxbbb_8-1710213532213.png

 

Sxbbb_7-1710213470733.png

Both codes are the same, incorrect.

want to count Base WOrk Output where SubStringCount =0 and QTY FA = 'N/A' .Table Summary 

6 Replies
qv_testing
Specialist II
Specialist II

if you have two fields in same table, calculate substringcount script level.

your expression will be like

COUNT({<SubstringCount={0}, QTY FA = {'N/A'}>}WorkOrder_Baseoutput) 

Sxbbb
Creator III
Creator III
Author

Error Expression 

Sxbbb_0-1710227962232.png

 

Sxbbb_1-1710228140309.png

 

qv_testing
Specialist II
Specialist II

QTY FA should be in SQUARE bracket [QTY FA]

Sxbbb
Creator III
Creator III
Author

Sxbbb_0-1710229543638.png

It counts every Base WORK Output, it is incorrect.

Sxbbb_1-1710229777969.png

 

Just want to count (SubStringCount([Machine FA],[Machine Runlot])) = 0

qv_testing
Specialist II
Specialist II

can you share sample data ?

Dataintellinalytics

As suggested by "Qv_testing" did you move the substring logic to backend data load editor script and created calculated field SubstringCount ?