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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Incorrect Sum on Straight Table

Hi Guys,

I think Straight Table is not right !

Background:

In my data model, OrderId repeats multiple times. and this is how the data model looks


Data Model.png

What I am trying to do?

I want to see how many products are delivered and how many are shipped


I am using below expressions in straight table

For Total Delivered :  =num(Count(Distinct{$<StatusId={1}>}OrderId),'##,###,###')

For Total Shipped : =num(Count(Distinct{$<StatusId={2}>}OrderId),'##,###,###')


And I get this straight table

Straight Table.png

It looks right but shouldn't the total of delivered product be 4? instead of 2?

I have attached sample QVD with data.

Thanks

Labels (1)
17 Replies
Not applicable
Author

lol sunny took screenshot and attempted to attach QVW so I thought i should mark you as correct answer compare to Kushal's short answer

but jokes apart.. and thank you both for replying my post.

sunny_talwar
MVP
MVP

Thanks for recognizing both our efforts

Kushal_Chawda
MVP
MVP

nahi bhai muje is helful k 50 points milne wale the isliye bola

sunny_talwar
MVP
MVP

je baat

Kushal_Chawda
MVP
MVP

Not applicable
Author

May you can earn more points by answering my another question?

How to manage Page Level when field does not exist?

sunny_talwar
MVP
MVP

I wish I had any experience in NPrinting to help you out

Not applicable
Author

no worries.. may you can answer this question then

Failover/secondary DB connection string