Forum Discussion
gowrishankar65
7 years agoHelper I
DAX Calculation unique Count
Hi Team, I am trying to create report for Retail Analytics. I have a table with Columns - Phone Number, Invoice Date which has duplicates. With Invoice Date I am getting No. of visits (Calc...
- 7 years ago
Try this one
Measure = COUNTX ( FILTER ( SUMMARIZE ( ALLSELECTED ( TableName ), TableName[Phone Number], TableName[Invoice Date] ), [Fraud or Valid] = "Fraud" ), 1 )
Sidhartha_1992
7 years agoNew Member
No,Sir i want the phone number 123456 to be counted as two.
The solution you provided gets me the distinct count of FRAUD numbers but i want the overall count of FRAUD numbers which should be 4 for the table provided above but your formula is giving the count as 3
Zubair_Muhammad
7 years agoCommunity Champion
Try this one
Measure =
COUNTX (
FILTER (
SUMMARIZE (
ALLSELECTED ( TableName ),
TableName[Phone Number],
TableName[Invoice Date]
),
[Fraud or Valid] = "Fraud"
),
1
)
- Sidhartha_19927 years agoNew Member
Thanks a lot Zubair,it worked for me :)
- Zubair_Muhammad7 years agoCommunity Champion
- gowrishankar657 years agoHelper I
Hi Zubair_Muhammad,
We both are working on the same project. ;)
Thanks Zubair :)
Regards,
Gowrishankar