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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count Distinct values for (2) fields for all records upto selected date

Hi,

I am using the following expression, but it only counts for the current date selected and not for all records UPTO that date. Please help

 

Sum

(Aggr( Count(Distinct {$<Date ={"<=$(=Max(Date))"}>}abc),def,abc

))

Labels (1)
5 Replies
Not applicable
Author

Have you tried with 1 instead of $?

Sum

(Aggr( Count(Distinct {1<Date ={"<=$(=Max(Date))"}>}abc),def,abc

))

Not applicable
Author

Sorry, no change... working the same way.

Not applicable
Author

Can you share a sample app?

Not applicable
Author

Attaching a sample app:

Now,

In the attached spreadsheet the total count for

Scenario = 1 and Timing = 1 should be 1 for Jan but it should be 2 for Feb since it should count all the Distinct values from earliest start date to current date .

Similar for Scenario 1 and Timing 2.

Not applicable
Author

Hello Everyone,

Any ideas for my problem...... I attached a sample app.