Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ilanbaruch
Specialist
Specialist

Transactions with different agents

hi all

in my model I have two agents for every transaction. agents are coming from different tables in script.

in UI i want to present  count of transactions that both agents are the same i.e:

Agent AAgent BRecordKeyCNT
DA2935810
DA2935910
DA2936010
DB2947110
DB2947210
DB2951610
DB2952410
DB2954310
DC2954410
DC2957310
DC2958410
DD2958511
DD2961211
DD2963511
DD2967311
DD2967711
DD2969511
DD82084211
DD82093311
AD82102410
AD82111510
AD82120610
AB82129710
AB82138810
AB82147910
AB82157010
AB82166110
AC82175210
AC82184310
AC82193410
AA82202511
AA82211611
AA82220711
AA82229811

 

any ideas ?

 

advanced thanks

1 Reply
GaryGiles
Specialist
Specialist

You could use an if() function inside the count() function, like this:

=count(if([Agent A]=[Agent B],[RecordKey]))