I haven't used DAX much but I thought this would be easier. Basically I have the value [ID] in the rows of a pivot table using the data model function, and then the values [Numerator],[Denominator], and then a calculated field called [Calc] that is simply [Numerator]/[Denominator].
I would like to create another calculated field that uses different criteria based on the [ID] value in the rows section. This is what I've tried
=SWITCH(
TRUE,
[ID]="Alpha"&&[Calc]>.75,"G"
[ID]="Alpha"&&[Calc]<=.75,"R"
)
The issue is the formula can't evaluate the value of the [ID] field in the rows section, and I'm not sure how to handle this.