Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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))

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

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))

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
bmchale1983
Contributor III
Contributor III
Author

TY!