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: 
vmurugananthan
Contributor II
Contributor II

YTD Calculation in script

Hi,

I have the following dataset:

DateClaim NumberProcessing StatusInjury Type
25-05-20201PSevere
25-05-20202NPMinor
01-06-20203PSevere
08-06-20204NPSevere
08-06-20205PMinor
15-06-20206NPSevere
15-06-20207NPSevere
15-06-20208NPSevere

 

I want to calculate YTD numbers for:

1. total processed (Count of claims with Processing status as P)

2. % processed (Count of claims with Processing status as P / all claims)*100

3. Total number of severe injuries

 

I tried many methods like AsOfTable, Using RangeSum and Above combinations etc. All these works but the problem is I need to have a date filter in my dashboard. So when i select a particular date, the data is shown only for that date but i want it to be from the start of the year. 

 

Any idea on how to implement this @sunny_talwar @swuehl  or anyone else from the community? Thanks in advance.

Labels (1)
1 Reply
Nicole-Smith

Your post has been replied to on the other thread.  Please do not post the same thing multiple times.

https://community.qlik.com/t5/QlikView-App-Development/Calculation-of-YTD-in-script/m-p/1707236/