Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD Calculation Issue

My input file is like below,

Sales OfficeCostCenterNameFYPeriod%Solved
PAC19000John20110182.61%
PAC19000John20110286.11%
PAC19000John20110393.60%
PAC19000John20110485.94%
PAC19000John20110578.75%
MAT21000Arnold20110192%
MAT21000Arnold20110258%
MAT21000Arnold20110375.25%
MAT21000Arnold20110484.30%
MAT21000Arnold20110593.32%


I would like to calculate YTD and see the values like

Sales OfficeCostCenterName201101201102201103201104201105YTD
PAC19000John82.61%86.11%93.60%85.94%78.75%85.04%


I have tried with Set analysis .Nothing worked YTD correctly.

Thank you in advance for your help.

1 Reply
johnw
Champion III
Champion III

I'd probably handle it with an AsOfFYPeriod that links to all FYPeriods before or on that period in the same fiscal year. See attached. I'm using a calendar year since I don't know what your fiscal year is, but same idea. I've also assumed that you aren't reading in %Solved directly, and instead a Solved number and a Total number. Otherwise, there's no way to know what percent were solved year to date.