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

count distinct 2 fields

Hello,

I have been able to come up with the following equation which gives me total distinct count of days, but I need it to have BDI Flag = 1.

=Sum(Aggr(Count(Distinct ACCT_OPEN_DT),BDI_Flag)) 

when I do this, it still gives me same count.

=Sum(Aggr(Count(Distinct ACCT_OPEN_DT),BDI_Flag='1')) 

Any ideas?

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this

=Sum(Aggr(Count({<BDI_Flag = {1}>} Distinct ACCT_OPEN_DT),BDI_Flag))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

May be this

=Sum(Aggr(Count({<BDI_Flag = {1}>} Distinct ACCT_OPEN_DT),BDI_Flag))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
bmchale1983
Contributor III
Contributor III
Author

TY!