Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi assembled geniuses,
I posted a question a while ago but it was incomplete (my bad).
I need an expression for the attached graph and table which will:
For clarity, the graph and table would exclude:
Sue and Fred (more than one record in at least one year) and Mikey and Guy (no records in at least one of the sales years),
leaving just John (one record in every sales year).
Go!
Thanks in advance 🙂
Thanks,
Solution found as follows:
If(Aggr(count (Year),Name,Year)=1 and (count(Distinct TOTAL Year) = count(total <Name>Year)) ,Sum(Sales))
About the best I can do are the following links that may help, and the last link is the base URL to the Design Blog area in case you want to do some further searching on your own, there are hundreds of how-to posts from our experts in this area...
https://community.qlik.com/t5/Qlik-Design-Blog/Use-Aggregation-Functions/ba-p/1475833
https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822
https://community.qlik.com/t5/Qlik-Design-Blog/Excluding-values-in-Set-Analysis/ba-p/1471704
https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog
My post will kick things back up, someone else may provide something direct at that point, but cannot promise.
Regards,
Brett
Thanks,
Solution found as follows:
If(Aggr(count (Year),Name,Year)=1 and (count(Distinct TOTAL Year) = count(total <Name>Year)) ,Sum(Sales))