Qlik Community

Ask a Question

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
March 11, 2PM EST: Do More with Qlik - Getting Started wtih Qlik Sense SaaS - Redux. REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
varunreddy
Creator III
Creator III

Set Analysis inside set analysis

Hi All,

I need your help with one of the expression. Not sure why it is doing it. Hoping you guys will help fix it.

I have a dimension 'Name' and I want to calculate all the months where the count(ID)>6. I want this expression in the front end.

This expression is working fine when the Name is selected, else it is giving all the months available for that Name.

 

Expression:

Count({<Month= {"=(Count({<Year={$(=vMaxYear)}>} ID))>6"}>} Distinct Month)

 

Can anyone please help me understand why it is working when the Name is selected, else displaying all the available dates in that year that is associated to that name?

 

Thanks in advance!

4 Replies
Anil_Babu_Samineni

This should work when you not selecting as well. Provide some application to test.

Second part, Try this?

If(GetSelectedCount(Name)>0, Count({<Month= {"=(Count({<Year={$(=vMaxYear)}>} ID))>6"}>} Distinct Month), ' ')

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
varunreddy
Creator III
Creator III

Hi,

What do you mean by second part?

 

 

 

varunreddy
Creator III
Creator III

As my dimension is Name, else condition cannot be ' '. We need to display the count of Months where count of Loan ID >6. Can you please suggest any options?

Anil_Babu_Samineni

Perhaps this?

 Count({<Month= {"=Count(LoanID)>6"}>} Month)

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)