Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Is there a way you can use a contains like operator in a measure?
What I am trying to do here is filter all activity types that CONTAINS "Call"
Solved! Go to Solution.
Hi @actzikas ,
First you need to create a calculated column to check whether the selected line has the value you need:
Column = CONTAINSSTRING('Renewal Activity (Offsite Data)'[Activity Type],"Call")Then you can calculate the numbers of calls using a measure:
Measure = CALCULATE(COUNTROWS(Renewal Activity (Offsite Data)),'Renewal Activity (Offsite Data)'[Column]=True())
Finally it will show similarly to my sample data as below:
Best Regards,
Kelly
Create 2 fields to accomplish your requirement:
Calculated Column = SEARCH("Call",'Renewal Activity'[Activity Type],1,0)
Measure = CALCULATE(COUNT('Renewal Activity'[Offsite Data]),[Calcualted Column],'Renewal Activity'[Activity Type])
I have created sample for
Please don't forget to hit THUMBS UP and Accept this as a solution if it helps you!
Hi @actzikas ,
First you need to create a calculated column to check whether the selected line has the value you need:
Column = CONTAINSSTRING('Renewal Activity (Offsite Data)'[Activity Type],"Call")Then you can calculate the numbers of calls using a measure:
Measure = CALCULATE(COUNTROWS(Renewal Activity (Offsite Data)),'Renewal Activity (Offsite Data)'[Column]=True())
Finally it will show similarly to my sample data as below:
Best Regards,
Kelly
Yes, I saw that article but how would you use it in the above example I created?
I tried
Number of Calls = CALCULATE(Count('Renewal Activity (Offsite Data)'[Activity Type]), Contains('Renewal Activity (Offsite Data)', 'Renewal Activity (Offsite Data)'[Activity Type] = "Call" ))
And that didn't work @Tahreem24
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 64 | |
| 50 | |
| 45 |