Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help w Expression

Hello, I am a business user with no access to the scrip, using the IE plugin. I am trying to create an expression that Distinct Counts when the shipdate = newdate for the customer. The expression works correct when I have a month selected but when I look trended for the yr, the counts do not match previous months totals, like when I have a single month selected. The problem I am running into is if there are more then one shipdate, QV does not know to choose the first ship date to match to the new date and then does not get counted. I want QV to only count one time when the shipdate=newdate. I have tried min() around the Shipdate but not luck. Is there any other functions that I can add to my formula that would tell QV to look at the first shipdate to match to the newdate. Here is my formula: Thank you,

=Count(aggr(if(ShipDate=NEW_DATE,Count(DISTINCT Customer)),Customer))

11 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

if you are not experiencing any performance issues, than this solution must be OK... Otherwise, let's keep talking...

Ask me about Qlik Sense Expert Class!
Not applicable
Author

I've had to do this exact same thing 50 times (sometimes with 20 million+ records) and as you know it can be a nightmare... so if you have any alternate solutions I would love to hear them but I wasn't able to find any.