Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
salto
Specialist II
Specialist II

Custom value in header depending on value in lines

Hello,

I am reading a Quality Control table, it has a header with the QualityControl ID and several lines in other table:

QualityControlHeader:

LOAD

    "No_" as ControlID

SQL SELECT *

FROM QualityControlHeader;

left join LOAD

    LineOnTest,        //TRUE or FALSE        

    NumControl as ControlID;

SQL SELECT *

FROM QualityControlLines;

I would like to add a field in the table (which is not in the data source): if all the lines for a ControlID are TRUE for the LineOnTest field, a new field in the Header (HeaderOnTest) has to be TRUE. If not, the value for this field needs to be FALSE.

How can this be carried out? Thanks.

0 Replies