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: 
mapratt82
Creator
Creator

I think I need a type of If exist statement? Not sure?

The problem is I have a user exclusive field that has either a 1 or 0 in it. I want if any user on an account has a 1 in the field, for it to be saved to the account as the account have a 1 in the field. Is this possible? Will it need to be in the data load or can it be in the dashboard? Help please!

Thanks

Mark

1 Reply
swuehl
MVP
MVP

Maybe something like this?

Accounts:

LOAD AccountID,

          ...

FROM YourAccountTable;

LEFT JOIN (Accounts)

LOAD // UserID,  //commented, don't needed for the aggregation

          AccountID,

          If(Sum(UserExclusiveField) >0, 1,0) as YourNewFlag

FROM YourUserTable

GROUP BY AccountID;