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: 
JamGardner
Contributor III
Contributor III

Hiding rows and Lines

Hi All, 

hoping someone can help with what will probably be very simple, but I am struggling with it. 

I have a set of pivot tables and vizlib line charts that I have created where I use a drill down dimension going; 

Top Level > level 2 > sub unit (location) 

I have applied some set analysis to the measure on each of the visualisations to narrow down the data displayed; 

sum({<CustType -={'Business A'},Location-={'Unknown'},Level2={'Sales'},Date={">=$(=(MonthStart(Max(Date)-182)))<$(=MonthStart(Max(Date)))"}>}AgentSales)
/
Sum({<CustType -={'Business'},Location-={'Unknown'},Level2={'Sales'},Date={">=$(=(MonthStart(Max(Date)-182)))<$(=MonthStart(Max(Date))))"}>}Contacts)

 

Which all works fine and gives me the information I want to display; what I want to do is tidy up the data displayed so that it only shows the locations where we have had 100+contacts in the latest week to be displayed as lower than that doesn't impact the overall results to a great extent. 

 

I have tried adding Contacts={'>=100'} as another element to the set analysis however it caused the table not to display any data. 

 

Can anyone drop me a line on the best way to essentially remove/hide the locations with low contacts based on the latest weeks results 

 

Thanks

1 Solution

Accepted Solutions
abhijitnalekar
Specialist II
Specialist II

Hi @JamGardner ,

Please Try below.

create a new dimension for location as

if(

Sum({<CustType -={'Business'},Location-={'Unknown'},Level2={'Sales'},Date={">=$(=(MonthStart(Max(Date)-182)))<$(=MonthStart(Max(Date))))"}>}Contacts)>100,

DimensionName) 

Hope this helps you

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

3 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @JamGardner ,

Please Try below.

create a new dimension for location as

if(

Sum({<CustType -={'Business'},Location-={'Unknown'},Level2={'Sales'},Date={">=$(=(MonthStart(Max(Date)-182)))<$(=MonthStart(Max(Date))))"}>}Contacts)>100,

DimensionName) 

Hope this helps you

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
JamGardner
Contributor III
Contributor III
Author

Hi @abhijitnalekar 

 

Thanks for coming back to me, I wasn't quite sure I followed with the above. Are you meaning create a dimension in my load script? Sorry if this is a basic question. 

abhijitnalekar
Specialist II
Specialist II

Hi,

create a variable at the application level. and use the same in pivot table

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!