Forum Discussion
bhatsuchi
8 years agoFrequent Visitor
DAX to count rows with same value for Column A for a value in column B
Id Email
1 [email protected]
2 [email protected]
3 [email protected]
1 [email protected]
1 [email protected]
2 [email protected]
2 [email protected]
3 [email protected] Hello! I have a table with data like above. I want to create...
- 8 years ago
You may refer to the measures below.
Measure = COUNTROWS ( FILTER ( VALUES ( Table1[Id] ), CALCULATE ( COUNT ( Table1[Email] ) > DISTINCTCOUNT ( Table1[Email] ) ) ) )Measure 2 = COUNTROWS ( FILTER ( VALUES ( Table1[Id] ), CALCULATE ( DISTINCTCOUNT ( Table1[Email] ) > 1 ) ) )
Mariusz
Community Champion
7 years agoHi Anonymous
Sorry, missed CALCULATE()
Table =
ADDCOLUMNS(
DISTINCT( DirectQuery[ID_ColumnID_001]),
"Repeated time", FORMAT( CALCULATE( COUNTROWS( DirectQuery ) ), "" ) & " Times"
)
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.

Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
Mariusz
Community Champion
7 years agoHi Anonymous
and - 1 to start @ 0 Times.
Table =
ADDCOLUMNS(
DISTINCT( DirectQuery[ID_ColumnID_001] ),
"Repeated time", FORMAT( CALCULATE( COUNTROWS( DirectQuery ) ) -1, "" ) & " Times"
)