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: 
rohitians
Creator III
Creator III

Purchase/Consumption Calculation expression.Monthwise

Hello,

I have an existing report where in we are displaying purchase and consumtion location wise,

but now we want the report to be displayed month wise i.e the month dimension is to be added,

but as i add the month dimension the opening and closing inventory values is not correct,,,,

I am attaching that report in another qv file please help where in i need to make changes so that correct inventory is displayed..

Thanks and Regards,

Rohit Yadav

3 Replies
sujeetsingh
Master III
Master III

Rohit ,

First of all  it seems there is some issue in sample given by you .

Please post a correct sample,

rohitians
Creator III
Creator III
Author

Hello,

For opening inventory the code is..

(Sum({$<FinancialYear=,MonthName=,Quarter=,PostingDate ={"<$(=(Min(PostingDate)))"}>}  Cost_Amt_Actual)+

Sum({$<FinancialYear=,MonthName=,Quarter=,PostingDate ={"<$(=(Min(PostingDate)))"}>}  Cost_Amt_Expected))/100000

for closing inventory i have code as

(Sum({$<FinancialYear=,MonthName=,Quarter=,PostingDate ={"<=$(=(Max(PostingDate)))"}>}  Cost_Amt_Actual)+

Sum({$<FinancialYear=,MonthName=,Quarter=,PostingDate ={"<=$(=(Max(PostingDate)))"}>}  Cost_Amt_Expected))/100000

now when i introduce month as dimension it does not displays values correct i need to make changes to this code but not able to figure it out ....

Thanks and Regards,

Rohit

sujeetsingh
Master III
Master III

Its seems you are using Month name in set analysis for exclusion.