Forum Discussion
If, then...
- 4 years ago
It would be more helpful if you could provide some sample data and expected output.
If you want to count the number of Unique IDs, you could try:
Measure = DISTINCTCOUNT ( 'table'[Unique ID] )If you want to add a flag to each row to mark "Answered" or "Unaswered", you could add a calculated column
New column = var __count = CALCULATE(DISTINCTCOUNT('Table'[Status]), FILTER('Table', 'Table'[ID] = EARLIER('Table'[ID]))) return IF(__count=1, 'Table'[Status], "Answered")If this is not what you want, can you provide some sample data?
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
It would be more helpful if you could provide some sample data and expected output.
If you want to count the number of Unique IDs, you could try:
Measure = DISTINCTCOUNT ( 'table'[Unique ID] )
If you want to add a flag to each row to mark "Answered" or "Unaswered", you could add a calculated column
New column =
var __count = CALCULATE(DISTINCTCOUNT('Table'[Status]), FILTER('Table', 'Table'[ID] = EARLIER('Table'[ID])))
return
IF(__count=1, 'Table'[Status], "Answered")
If this is not what you want, can you provide some sample data?
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.