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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_saini
Master III
Master III

Year and Month wise data not matching

Hi Folks,

I'm doing very simple calculation by using Year and Month as dimensions in bar chart , but my numbers is not matching.

Expression in both cases :

sum({< Defect_Description=, Complaint_Acceptance-={'4','5','6','7'}> }QTY_PPM*Top_Pos_Flag) / sum(QTY_Delivered_TOTAL) *1000000

Thanks,

AS

14 Replies
sunny_talwar

Would you be able to share a sample?

sunny_talwar

Are you not getting any results? or the results you are getting are not right:

Try this as well:

Sum(Aggr(Sum({< Defect_Description=, Complaint_Acceptance-={'4','5','6','7'}> }QTY_PPM*Top_Pos_Flag) / sum(QTY_Delivered_TOTAL) *1000000, UniqueField))

amit_saini
Master III
Master III
Author

PFA

sunny_talwar

Wow, this is huge

sunny_talwar

Here, this formula seems to work:

=Sum(Aggr(sum({< Defect_Description=, Complaint_Acceptance-={'4','5','6','7'}> }QTY_PPM*Top_Pos_Flag)/

  sum({< Defect_Description=, Complaint_Acceptance-={'4','5','6','7'}> }QTY_Delivered_TOTAL) *1000000, Month))


Capture.PNG



But this is aggregating on the Month Column and in your case I would try to aggregate on a unique column. What is a unique key in your fact table?