Forum Discussion
fcndsnchz
3 years agoRegular Visitor
Distinctive Count across two columns
Here is an example of what i'm trying to do: DATE ID1 ID2 2/3/2023 #1 #2 2/3/2023 #2 #3 2/3/2023 #4 #2 2/3/2023 #4 #1 2/3/2023 #1 #5 I'm looking for dax measu...
- Anonymous3 years ago
Hi fcndsnchz
You can refer to the following example.
Create a new table:
Table = var a=SUMMARIZE('Table (2)',[DATE],'Table (2)'[ID1]) var b=SUMMARIZE('Table (2)','Table (2)'[DATE],'Table (2)'[ID2]) return UNION(a,b)Then put the column to the table visual, and create a new measure:
Measure 2 = DISTINCTCOUNT('Table'[ID1])Output:
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
Hi fcndsnchz
You can refer to the following example.
Create a new table:
Table = var a=SUMMARIZE('Table (2)',[DATE],'Table (2)'[ID1])
var b=SUMMARIZE('Table (2)','Table (2)'[DATE],'Table (2)'[ID2])
return UNION(a,b)
Then put the column to the table visual, and create a new measure:
Measure 2 = DISTINCTCOUNT('Table'[ID1])
Output:
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.