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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
azmeerrehan
Partner - Creator
Partner - Creator

Straight Table Issue

I  have a straight table showing  the in two rows as attached.  THe output required is BELOW

A                   B     C                    D       E

70076746      754    GS4465X       -         18

The Expression for E is below

Aggr((sum({< LinkType = {'Production'},  Date = {"$(vMax_Prod_Prod_Date)"},Production_Key={'Production'} >}  available_qty)

-

sum({< LinkType = {'Production'},  Date = {"$(vMax_Prod_Order_Date)"},Production_Key={'Orders'},treatment_code-={'ZZZ'}>}  sum_orders)),A, B)

Please note that Available Qty and Sum_Orders is coming in from 2 different data sets with different Dates

Labels (1)
4 Replies
petter
Partner - Champion III
Partner - Champion III

Can you share the content of the variable vMax_Prod_Order_Date?


Why do you use an Aggr()-function to calculate - wouldn't a Sum(TOTAL <A,B> ..... ) do the trick?


Are you able to create a sample QlikView application with some data for us - it is hard to see exactly what needs to be done in you short description?


azmeerrehan
Partner - Creator
Partner - Creator
Author

The content of the variable "vMax_Prod_Order_Date"

=max({<LinkType = {'Production'}, Production_Key={'Orders'},  AgroCoreZone=, Sales_DM_Concat=, Sales_DM_Concat_NK=, [CU Desc]=>} Date)

Anil_Babu_Samineni
MVP
MVP

The trick may equal sign before your variable. So, add that.. and, where you add this variable i meant with in the script or overview?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar
MVP
MVP

Did you even get to see the solution provided here?

Straight Table Issue