Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Contains in a dax function

Hello,

 

I am trying to fiture out how to do contains in a dax function. 

 

below is the dax function I users with works if the value is "Rejected". But in some cases the Offer Status contains some other charecters along with 'Rejected'.

 

Rejected = CALCULATE(COUNTAX('Master','Master'[Offer Status]),'Master'[Offer Status]="Rejected")
 
I am trying to do somhing like Rejected = CALCULATE(COUNTAX('Master','Master'[Offer Status]),'Master'[Offer Status] Contains "Rejected")
 
or 
 
Rejected = CALCULATE(COUNTAX('Master','Master'[Offer Status]),'Master'[Offer Status]="%Rejected%")
 
Can someone guide me to the right direction?
 
Best Regards

2 Replies