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: 
tommyl
Creator
Creator

When date is filtered, opening balance turns out to be zero not the previous year's

Hi,

I created a balance report like:

tommyl_1-1598421346414.png

 

The problem: When i select filter value as 2020 , opening balance of 2020-Jan does not displaythe closing balance of 2019-Dec: 

tommyl_2-1598421444132.png

What is expected: 2020-Jan should have the value 70,998 instead of 0(zero). 

 

Data used are:

Filter: [createdat.autoCalendar.Year]

Opening Balance Dimension: rangesum(Above(sum({<[category]={'STANDARD'}>*<[subtype]={'CREATION'}>}fabs([amount])) , 1, rowno()))*Avg(1)

Closing Balance Dimension: rangesum(Above(sum({<[category]={'STANDARD'}>*<[subtype]={'CREATION'}>}fabs([amount])) , 0, rowno()))

 

 

Could you please help me on this? 

Regards,

T. 

1 Solution

Accepted Solutions
chrismarlow
Specialist II
Specialist II

Hi,

I think you need to cancel your Year date selection in your set analysis, also include *Avg(1) on the closing balance & make sure to deselect Include zero values (in Add-ons-Data Handling);

rangesum(Above(sum({<Year,[category]={'STANDARD'},[subtype]={'CREATION'}>}fabs([amount])) , 1, rowno()))*Avg(1)

rangesum(Above(sum({<Year,[category]={'STANDARD'},[subtype]={'CREATION'}>}fabs([amount])) , 0, rowno()))*Avg(1)

Let me know if that helps.

Cheers,

Chris.

View solution in original post

2 Replies
chrismarlow
Specialist II
Specialist II

Hi,

I think you need to cancel your Year date selection in your set analysis, also include *Avg(1) on the closing balance & make sure to deselect Include zero values (in Add-ons-Data Handling);

rangesum(Above(sum({<Year,[category]={'STANDARD'},[subtype]={'CREATION'}>}fabs([amount])) , 1, rowno()))*Avg(1)

rangesum(Above(sum({<Year,[category]={'STANDARD'},[subtype]={'CREATION'}>}fabs([amount])) , 0, rowno()))*Avg(1)

Let me know if that helps.

Cheers,

Chris.

tommyl
Creator
Creator
Author

Hi Chris

Thank you, it perfectly worked 🙂 

Regards,