Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Nasibe
Contributor II
Contributor II

Filter in Set Analysis in AGGR function

 

Hi Qlikview Experts,

in Formula below When I filter on Vendor or others they don't work.Could you help me?

Count(
DISTINCT Aggr(

if(Count({<Vendor=,Brand=,ProductGroup=,ProductSubGroup=,ProductName=,Product_Code=>} DISTINCT OrderNumber)=0
,Customer_Code),Customer_Code
))


Thanks

 

 

Labels (1)
3 Replies
Mark_Little
Luminary
Luminary

You need to make sure you carry your set expression up the AGGR function.

Because you are only apply the set Expression on the original set analysis the vendor selection isn't being ignored in your top count.

Nasibe
Contributor II
Contributor II
Author

Thanks for your quick reply
this you mean:

Count({<Vendor=,Brand=,ProductGroup=,ProductSubGroup=,ProductName=,Product_Code=>}
DISTINCT Aggr(

if(Count({<Vendor=,Brand=,ProductGroup=,ProductSubGroup=,ProductName=,Product_Code=>} DISTINCT OrderNumber)=0
,Customer_Code),Customer_Code
))


it returns Zero value.
could please write correct formula?
Thanks in advance

edwin
Master II
Master II

do you have sample data you can post so we can see whats happening?