Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello,
I'm trying to count the distinct values in a column with filters without using CALCULATE because I am using a Direct Query.
So far I have COUNTROWS(FILTER(Table, Table[A] = "1")) which counts every row with the filter condition but I'm not sure how to make it filter only on the distinct values in a given column as well.
Solved! Go to Solution.
@RYU209
Please try
=
COUNTROWS (
DISTINCT (
SELECTCOLUMNS (
FILTER (
'Table',
'Table'[A] = "1"
),
"@B", 'Table'[B]
)
)
)
@RYU209
Please try
=
COUNTROWS (
DISTINCT (
SELECTCOLUMNS (
FILTER (
'Table',
'Table'[A] = "1"
),
"@B", 'Table'[B]
)
)
)
That worked perfectly. Thank you!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |