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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
tripatirao
Creator II
Creator II

Need Help with Qlikview Date function

Hi All,

Please look into following issue and help me.

My Requirement is for a particular month I need to show the total quantity till month end of previous month.

For Ex- For country India  for month June 2016(01-06-2016)  the value should show

(10+30+50+70+90)=250,similarly for Month May 160

Note-The data is there for 2011 to till date

I have attached source file and qlikview file for your reference.

Regards

Tripati

9 Replies
sunny_talwar

Like this?

Capture.PNG

May be this

RangeSum(Above(Sum(Quantity), 0, RowNo()))

tripatirao
Creator II
Creator II
Author

Hi Sunny

Thanks for your reply.

For country India For month June I need sum of quantity upto may month

i.e 10+30+50+70+90=250

for month May-10+30+50+70=160

Anil_Babu_Samineni

This?

Capture.PNG

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
varshavig12
Specialist
Specialist

Using Sunny's exp:

RangeSum(Above(Sum(Quantity), 1, RowNo()))

yasmeenk
Partner - Creator
Partner - Creator

Hi,

Using Sunny's Expression:

Like this?

tripatirao
Creator II
Creator II
Author

Hi

Your Solution is working for me

but thing is that user wants the report anotherway.

I have attached the image of current pivot table and expected pivot table.

Please check

Regards

Tripati

varshavig12
Specialist
Specialist

Try this:

RangeSum(before(Sum(Quantity), 1, sum(Quantity)))

varshavig12
Specialist
Specialist

May be something like this :

sunny_talwar

Or this if you expect users to make selection in a particular month and the numbers should still stay the same

Before(RangeSum(Before(Sum({<Month>}Quantity), 0, ColumnNo()))) * Avg(1)

Without Selection

Capture.PNG

With Selection

Capture.PNG