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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to see Null lines in chart

Hi, QlikView community

I have two datasets in my qlikview report.

The table companies shows all the companies in the data.

In the dataset there can no companies and three companies in a %key

   

%keyCompany NameCompany Type
1DisneyCEE
1WalmartSHP
1Coca ColaCAR
2AppleCEE
2MaerskCAR

The table Job Ref shows the name of the job ref and the amount on the job ref.

And the %key connects the data

 

%keyJob RefAmount
1Florida1100
2Florida2220
3Kansas1320

And what I am trying to show in my chart is every Company that is Company Type = 'SHP' and if there is shipper for Job Ref I want the chart to show Null.

I want the chart to show this

Company Name               Amount

Walmart                             100

-                                          540

I don't if it is best to have calculated dimension or in the script

1 Solution

Accepted Solutions
ogautier62
Specialist II
Specialist II

Hi

it could be that :

with two dimensions :

dimension :

=if(aggr(count({<[Company Type] = {SHP} >} %key),%key)>0, 'Shipping','no shipping')

=  aggr(maxString(if([Company Type]='SHP',[Company Name])),%key)

regards

View solution in original post

3 Replies
YoussefBelloum
Champion
Champion

Hi,

maybe stalwar1‌ can take a look here ?

qlikviewwizard
Master II
Master II

hI darrihilmarsson

Can you explain the logic we need to apply for requirement?

How you got?

Company Name               Amount

Walmart                             100

-                                          540

ogautier62
Specialist II
Specialist II

Hi

it could be that :

with two dimensions :

dimension :

=if(aggr(count({<[Company Type] = {SHP} >} %key),%key)>0, 'Shipping','no shipping')

=  aggr(maxString(if([Company Type]='SHP',[Company Name])),%key)

regards