Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

SET ANALYSIS

Hello Experts,

I am stuck with a problem and I need your help to resolve it

SUM(     {$<     DWH_IM_MOVEMENT_TYPE={'2'},   DWH_IM_DATE={$"GI_LAST_DATE"}  >}  GI_IM_QTY )

What I want to achieve is to return the GI_IM_QTY where DWH_IM_MOVEMENT_TYPE=2 and DWH_IM_DATE=GI_LAST_DATE and it calculates it for every item

in other words if we can write the set analysis of

SUM(IF(

DWH_IM_MOVEMENT_TYPE=2 AND

DWH_IM_DATE=GI_LAST_DATE,

GI_IM_QTY))

without any selection it will might solve the problem.

I will really appreciate is someone can help on this.

11 Replies
aveeeeeee7en
Specialist III
Specialist III

Hi

Try this:

SUM({$<DWH_IM_MOVEMENT_TYPE={'2'},DWH_IM_DATE={'$(=Max(GI_LAST_DATE))'}>}GI_IM_QTY)


Regards

Aviral Nag

Anonymous
Not applicable
Author

Hi Aviral,

it looks like we are getting closer the problem is now it only shows you the GI_IM_QTY of the last day which is usually yesterday date anything before that it doesn't show you any stock.

I will be very thankful if you can help in this please