Forum Discussion
njxfoster
Helper I
4 years agoHow to If text column CONTAINS specified value, Then Count it
Hi Everyone,
I'm trying to create a calculated measure in one of my tables that help me count every column that contains the word "Warm".
How can I implement CALCULATE(COUNTROWS to achieve this function?
Thank you!
Try this measure:
Warm Count = CALCULATE ( COUNT ( Table1[Label] ), FILTER ( Table1, CONTAINSSTRING ( Table1[Label], "Warm" ) ) )Data:
Result:
1 Reply
- DataInsights
Super User
Try this measure:
Warm Count = CALCULATE ( COUNT ( Table1[Label] ), FILTER ( Table1, CONTAINSSTRING ( Table1[Label], "Warm" ) ) )Data:
Result: