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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gaurav2017
Creator II
Creator II

Please Help!

Nobody is there who can solve my problem, or its impossible to do it.

I am restating the problem again:

I have tables:

FiscalCalendar:

Month
Quarter
JanQ4
FebQ4
MarQ4
AprQ1
MayQ1
JunQ1
JulQ2
AugQ2
SepQ2
OctQ3
NovQ3
DecQ3

StockSummary:

ProductCode
ProductName
Sizes
Month
Year
PrimarySales
SecondarySales
X050ProductASJul201214356
X050ProductASAug201212867
X050ProductASSep201215544
Y100ProductBMJul201223255
Y100ProductBMAug201254545
Y100ProductBMSep201289742
Z150ProductCLJul201233457
Z150ProductCLAug201212287
Z150ProductCLSep201286298
Z150ProductCLOct20129715

OpeningSales:

ProductCode
Month
Year
OpningSales
X050Apr20121000
Y100Apr20121100
Z150Apr20121200

Problem:

1. ClosingSales = (OpeningSales+PrimarySales) - SecondarySales

2. ClosingSales (March) = OpeningSales (April)

ClosingSales(April, 2012) = OpeningSales(May, 2012)

& so on.

...........................................................................

...........................................................................

& also,

ClosingSales (Mar, 2013) = OpeningSales (April, 2013)

& so on.

................................................................................

.................................................................................

I mean it should behave like this.

Regards,

Gaurav Malhotra

11 Replies
rajni_batra
Specialist
Specialist

Can anybody plz help me with this stock

  GRN - GI = Closing

closing + GRN = next month opening

againg Opening -GI = closing for same month

gaurav2017
Creator II
Creator II
Author

I can't understand exacly, what you want. please explain it in detail plus attach a qvw file.