Forum Discussion
DAX Contains Text Statement
- 4 years ago
spandy34
Please create a calculated colum (dont give space between table name and col name)
calculatedcolumn = SEARCH("REC",'Table'[PolicyCode],,-1)
Then create measure
= CALCULATE(SUM('Table'[Net]),'Main Claim Data', [ClassOfBusinessCode] = "OT" && 'Main Claim Data',[calculatedcolumn] > 0)
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos
spandy34
Please try this,
= VAR _rec = SEARCH("REC",'Table'[PolicyCode],,-1)
RETURN
CALCULATE(SUM('Table'[Net]),'Main Claim Data', [ClassOfBusinessCode] = "OT" && _rec > 0)
If not solved, please keep posted (paste sample data)
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos
This is the message I get
- PijushRoy4 years ago
Community Champion
spandy34
Please create a calculated colum (dont give space between table name and col name)
calculatedcolumn = SEARCH("REC",'Table'[PolicyCode],,-1)
Then create measure
= CALCULATE(SUM('Table'[Net]),'Main Claim Data', [ClassOfBusinessCode] = "OT" && 'Main Claim Data',[calculatedcolumn] > 0)
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos