Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Eliminate rows based on status history

Hello All,

 

   

CNameMonthQuarterStatusFEE
INVJulQ3Active0
INVJulQ3Active0
INVJulQ3Inactive250
INVAugQ3Active0
INVAugQ3Active0
INVAugQ3Inactive250
INVSepQ3Active0
INVSepQ3Active0
INVSepQ3Inactive250
INVOctQ4Inactive0
INVOctQ4Inactive0
INVOctQ4Inactive250
CLIJulQ3Inactive155
CLIAugQ3Inactive155
CLISepQ3Inactive155
CLIOctQ4Active0
CLIOctQ4Inactive155

 

I have a requirement to display straight chart with records status as Inactive .

 

I was able to achieve this using set analysis expression  =Sum({<Status={'Inactive'}>} FEE)

 

NameMonthInactive Fee
1620
CLIAug155
CLIJul155
CLIOct155
CLISep155
INVAug250
INVJul250
INVOct250
INVSep250

                             

Now I have another requirement whenever Quarter is selected if anytime status is Active then that record should disappear from above chart

 

When Q3 is selected INC Cname data should not be displayed since it was active in Q3

 

When Q4 is selected CLI Cname data should not be displayed since it was active in  Q4

 

Other records will remain same


Attached is the data sheet and Qv file.

Please help

   

 

3 Replies
Gysbert_Wassenaar

Perhaps like this =Sum({<Quarter=, Status={'Inactive'}, CName=E({<Status={'Active'}>}CName)>} FEE)


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

If the above condition is applied by default I would not see any view....

My requirement is by default it should display all the inactive records.

When month or quarter is selected it should check if the cname is active in that particular month or quarter and eliminate those records.

When Jul is selected INV Cname data should not be displayed since it was active in Jul

When Aug is selected INV Cname data should not be displayed since it was active in  Aug

When Sep is selected INV Cname data should not be displayed since it was active in Sep

When Oct is selected CLI Cname data should not be displayed since it was active in  Oct

When Q3 is selected INC Cname data should not be displayed since it was active in Q3

When Q4 is selected CLI Cname data should not be displayed since it was active in  Q4


This condition should work even when multiple months and multiple quarters are selected.

Please help

sunny_talwar

See if this expression works for you:

=If(GetSelectedCount(Quarter) = 0 and GetSelectedCount(Month) = 0,

Sum({<Status={'Inactive'}>} FEE),

Sum({<Quarter=, Status={'Inactive'}, CName=E({<Status={'Active'}>}CName)>} FEE))