I have written two queries below to extract distinct count/record from a table. However, both of them are giving me different results.
The first query returns more records than the second query.
query 1:
.ReachOptimization_L0
| where CurrentSubscriptionStatus == "ACTIVE"| where SnapshotDate =="2019-11-29"| where IsOptIn==1| where CampaignName != "" or CampaignId != ""| where ReachedFlag== 1| summarize dcount(UserPUID)
query 2:
.ReachOptimization_L0| where CurrentSubscriptionStatus == "ACTIVE"| where SnapshotDate =="2019-11-29"| where IsOptIn==1| where CampaignName != "" or CampaignId != ""| where ReachedFlag== 1| distinct UserPUID