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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help on Accumulation

Hi Everyone,

I would like some assistance on the issue that I'm facing with a report. I am using pivot table object to display accumulated values for the selected quarter and year, the previous quarter and same quarter for the year before. The data starts from year 2010 till 2012 but only the values from year 2010 seems correct and the rest of the years and quarter seems wrong.

The code that i use for current quarter is as below:

Sum({$<PostingYear={"<=$(=Max(PostingYear))"},PQuarter={"<=$(=Max(PQuarter))"},PostingQuarter=>}Amount/1000)

I would like to know if there any better way to achieve this.

Thank you.

Regards,

Vivek

1 Solution

Accepted Solutions
Not applicable
Author

Something like below..

[MyMasterCalendar]:

Load

*,

AutoNumber(Period, 'PeriodID') as [PeriodID],

AutoNumber(Year & Quarter, 'QuarterID') as [QuarterID]

;

View solution in original post

3 Replies
Not applicable
Author

For this you need to create the master calender. 

Create unique autonumber for PostingYear and PQuarter.

Not applicable
Author

Hi Kiran,

My report already have a master calender, do I need another?

Can please guide me on how to create a unique autonumbering for those 2 fields.

Thank you

Not applicable
Author

Something like below..

[MyMasterCalendar]:

Load

*,

AutoNumber(Period, 'PeriodID') as [PeriodID],

AutoNumber(Year & Quarter, 'QuarterID') as [QuarterID]

;