Forum Discussion
Anonymous
2 years agoNot applicable
SUMMARIZE USING DISTINCTCOUNT
Hello, all! I need help with the following issue: I have this table: Year Month ID Text 2021 Jan 123 A 2021 Feb 123 A 2021 Mar 123 A 2021 Mar 123 B 2021 ...
- 2 years ago
Anonymous Oh, sorry, should just be this:
test = COUNTROWS( SUMMARIZE ( Consult, Consult[date].[year], Consult[date].[month], Consult[id]) )
Greg_Deckler
Community Champion
2 years agoAnonymous Try:
test = (COUNTROWS(
SUMMARIZE ( Consult, Consult[date].[year], Consult[date].[month], Consult[id]),
[Text])
SUMMARIZE will already return each row as a distinct combination of what you are summarizing over.
Anonymous
2 years agoNot applicable
Its not recognizing the column 'Text' as a column 😕
- Greg_Deckler2 years ago
Community Champion
Anonymous Oh, sorry, should just be this:
test = COUNTROWS( SUMMARIZE ( Consult, Consult[date].[year], Consult[date].[month], Consult[id]) )