Forum Discussion

Rocky_Brown's avatar
Rocky_Brown
Helper I
5 years ago

Dax Function

I ned a measure that searches a field for multiple  sets of characters.  I have tried both the Contains and Search and cannot seem to get the measure to work.

 

I have tried:

Measure = IF(OR(CONTAINS('Data','Data'[Category],"GP"),CONTAINS('Data','Data'[Category],"Other Value")), DIVIDE([Current Year Actual],[Current Year Budget]))

 

and 

Measure = CALCULATE(SUM('No Charge'[QtyShipped]),SEARCH("Door",'No Charge'[Item Class],,0)>0,SEARCH("Model",'No Charge'[Item Class],,0)>0),

 

Please help

 

Thanks

 

3 Replies