Forum Discussion
Anonymous
3 years agoNot applicable
Returning a different value based on duplicates
Hello, all...I am thankful you exist. 🙂 Here is my issue: I am trying to do a pie chart that compares number of arrests where a mental health flag is present vs. when it is not. I have d...
- 3 years ago
Hi Anonymous
Please try
MH Flag =
IF (
"MH"
IN CALCULATETABLE (
VALUES ( 'Table'[Flag] ),
ALLEXCEPT ( 'Table', 'Table'[Asset #] )
),
IF ( 'Table'[Flag] = "MH", "Yes" ),
"No"
)
Anonymous
3 years agoNot applicable
tamerj1,
You are a genius beyond measure. It worked. Thank you so much!!
Crystal