Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
felcar2013
Partner - Creator III
Partner - Creator III

Set Analysis Intersection not working correctly

hi,

i used this formula to calculate total number of customers by segment (A,B,C,D,E, New, Lost) in the following table, and i need to input "0" in the intersection field of the the field value "NewCustomer" and the row value "LostCustomer" (Field Names are: Segment Period 1 and Segment Period 2)

  =if(sum({$<[Segment Period 1] ={NewCustomer}>*<[Segment Period 2]={OldCustomer}>} RecordCounter)>0,0,sum({$<[Segment Period 1]=, [Segment Period 2]=>} total <[Period 1], [Period 2]> RecordCounter))

i get te intersection "new customer" and "lost customer" as "0" in the table (as desired) but when i used the partial sum option of the pivot table (presentation tab), it does not calculate it, and set a "0" instead. Same for total value (total-total cell)

I used "  *  " to denote intersection of the value fields, but I do not understand, why i get "0" as subtotal for the "lostcustomer" and "new customer" fields and as well as for the total. Do you know why is this happening?

Header 1Header 2Header 3Header 4Header 5Header 6Header 7Header 8Header 9
Segment Period 2
Segment Period 1A-CustomerB-CustomerC-CustomerD-CustomerE-CustomerLostCustomerTotal
A-Customer1001020304050250
B-Customer2512025354550300
C-Customer2040250403010390
D-Customer4020403401020470
E-Customer6010504055020730
NewCustomer805070306000
Total32525045551573500
0 Replies