Forum Discussion
Line Chart question
- 7 years ago
After a lot of trial and error, I figured out the solution.
Measure = IF(
CALCULATE(
COUNTA(table.column,table.column IN { "value A" })>0
||
CALCULATE(
COUNTA(table.column),table.column IN { "value B" })>0,
COUNTA('YTD (2)'[Call/Email])+0,
COUNTA('YTD (2)'[Call/Email])
)
you can copy and paste the CALCULATE function along with addition || operators to account for more values. Side note, || is equal to OR.
After a lot of trial and error, I figured out the solution.
Measure = IF(
CALCULATE(
COUNTA(table.column,table.column IN { "value A" })>0
||
CALCULATE(
COUNTA(table.column),table.column IN { "value B" })>0,
COUNTA('YTD (2)'[Call/Email])+0,
COUNTA('YTD (2)'[Call/Email])
)
you can copy and paste the CALCULATE function along with addition || operators to account for more values. Side note, || is equal to OR.