Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trouble creating pivot chart

I have data coming in that needs to be distinguished by the cust id and some other criteria.

I basically want my qlikview document to look like this:

Q114Q413

CN

ENTotalCNENTotal
Sally James20,1673,29023,45717,0942,12919,223
Sally James thru POS3853727578421,0091,850
Jimmy Brown8,3151,1499,4644,7572,2336,990
Jimmy Brown thru POS109811902202222
Danielle Jenkins1,5791351,7143,8352244,059
Danielle Jenkins thru POS6611518121140

160

To get Sally James I have the following as a dimension:

=if((Match([Res ID],'100529','400068','104198','609022') or [Res Direct Grandparent ID]='CTL01') and [Disti LOB]=39,'Sally James')

Sally James thru POS

=if((Match([Res ID],'100529','400068','104198','609022') or [Res Direct Grandparent ID]='CTL01') and [Disti LOB]<>39,'Sally James thru POS')

Jimmy Brown

=if((Match([Res ID],'100522','603207','608094') or [Res Direct Grandparent ID]='VRZ01') and [Disti LOB]=39,'Jimmy Brown')

Jimmy Brown thru POS

=if((Match([Res ID],'100522','603207','608094') or [Res Direct Grandparent ID]='VRZ01') and [Disti LOB]<>39,'Jimmy Brown thru POS')

Danielle Jenkins

=if((Match([Res ID],'102786','104805','608095', '609482') or [Res Direct Grandparent ID]='ATT01') and [Disti LOB]=39,'Danielle Jenkins')

Danielle Jenkins thru POS

=if((Match([Res ID],'102786','104805','608095', '609482') or [Res Direct Grandparent ID]='ATT01') and [Disti LOB]<>39,'Danielle Jenkins thru POS')

I tried setting up a group with each of these as dimensions but I can't get them all to show up.

My pivot table has dimensions

calculated dimension,

Year_Quarter

Division

expression is the following:

=round(sum({<[CTA Duplicate]={'No'},[Res Location]={'DOM'}>}$(vExtEffCommPrice))/1000)

not sure how I can get each of these dimensions to display like the example

any suggestions????????

Message was edited by: Michelle Malone I have added the script file.

5 Replies
Not applicable
Author

Try to prepare your dimension with names in load script!

Not applicable
Author

I put the following in my load statement but I don't seem to have any data appearing in Domestic Tier 1.

Did I do the if conditions wrong???

if ((Match([Res ID],'100529','400068','104198','609022') or [Res Direct Grandparent ID]='CTL01') and [Disti LOB]=39,'Centurylink'), if((Match([Res ID],'100529','400068','104198','609022') or [Res Direct Grandparent ID]='CTL01') and [Disti LOB]<>39,'Centurylink thru POS'),

     if((Match([Res ID],'100522','603207','608094') or [Res Direct Grandparent ID]='VRZ01') and [Disti LOB]=39,'Verizon'), if((Match([Res ID],'100522','603207','608094') or [Res Direct Grandparent ID]='VRZ01') and [Disti LOB]<>39,'Verizon thru POS'),

     if((Match([Res ID],'102786','104805','608095', '609482') or [Res Direct Grandparent ID]='ATT01') and [Disti LOB]=39,'AT&T'), if((Match([Res ID],'102786','104805','608095', '609482') or [Res Direct Grandparent ID]='ATT01') and [Disti LOB]<>39,'AT&T thru POS') as [Domestic Tier 1]

Not applicable
Author

May you attach your script?

Not applicable
Author

See initial post; I attached the script file there.

Not applicable
Author

First of all, i'am sure, that there is something not right with brackets in your nested if.

Your condition should look like this:

if(cond1,if(cond2,result12,result13),result4) as some_column

this will give you as result result12 if condition 1 and condition2 is met, result13 if condition1 is met but condition2 is not true, result4 - if conditio1 is not true.

Try to simplify your if for the beggining. Do only first, then, if first will be ok, add next, etc.

When you put your coursor near some bracket, editor will show you it, and its pair in red. This helps to check if pairs are where you expect it.

regards

Darek