Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to use additional row using condition in existing pivot table?

Hi,

I have tables as below in qvw.

Computer:
LOAD Region,
     Code,
     CustomerID,
     [Computer Stage],

     Staff,
    If(MixMatch([Computer Stage],'DELL'),Dual('Station 1',1),

     If(MixMatch([Computer Stage],'HP',

     'VAIO',

     'INNOVA'),Dual('Former Station 1',2)

     If(MixMatch([Computer Stage],'PC Application'),Dual('PC Ordered',3)

     If(MixMatch([Computer Stage],

     'Final DELL - Allocation',

     'Final HP'),Dual('PC Delivered',4)

If(MixMatch([Computer Stage],'Dockure'),Dual('PC Price',5)

  If(MixMatch([Computer Stage],

'TOSHIBA'),Dual('Confirmed',6)

If(MixMatch([Computer Stage],'DELLITE'),Dual('Monitored',7) [Computer Stage]))))))) as Flag,
Received
FROM
[Customer QVD\ComputerDet.qvd]
(qvd)


Location:
LOAD CustomerID, 
     Region_From,
     Region_to,
     Transfer_Date,
     Transferby,
     Code
FROM
[Customer QVD\Location.qvd]
(qvd);

There is join between above two tables.

I have Pivot table built as below

Dimension= Flag

Dimension = Staff

Expression = Count(CustomerID)

Computer StageCEOManagerTeam Leader
Station 1348989
Former Station 1326790
PC Ordered500090
PC Delivered345900
PC Price34564345
Confirmed3489
Monitored124568908

my requirement is I need to add one more row into existing Pivot table

The condition used for the new row is

count(CustomerID) where Region_From ='US' to Region_to='UK'

as the two columns Region_From and Region_to are in separate table I am not sure how to use this condition. Please can anyone suggest me how to use this.

All I need the output as below

Computer StageCEOManagerTeam Leader
Station 1348989
Former Station 1326790
PC Ordered500090
PC Delivered345900
PC Price34564345
Confirmed3489
Monitored124568908
Moved from Location458990

Thanks.

10 Replies
buzzy996
Master II
Master II

qvw pls?