Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

How to get row count using measure as a 'contains' filter

I have a table where I am trying to get a count of the # of tasks completed each quarter containing certain key words in the labels field. For example, for tasks containing the word 'Gov't Affairs' in the label, count the # of tasks completed each quarter with this key word. 

 

alexu23_2-1661468088054.png

 

alexu23_1-1661467984392.png

However, I wanted to create a slicer that allowed you to filter based off if the label 'contains' a key word. So I created a separate non-related table containing each of the labels and a measure that searches the 'Labels' column in my main table.

 

alexu23_0-1661470308346.png

 

alexu23_4-1661468336863.png

 

Using what I did above, I can get output like this:

alexu23_0-1661543328694.png

 

 

However, I don't want to display the Labels column; I only want the quarter completed date and the # of tasks completed in each quarter. When I try to do this, I get nothing:

 

alexu23_1-1661470357347.png

 

alexu23_2-1661470380059.png

 

How can I get the output I got above, using my separate table and measure as a filter?

 

Also, is there anyway I am able to select multiple labels? Using the table as a slicer, I am only to select one label at a time.

 

 

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

Do you want to get the count of task which contains selected labels? In order to give you a suitable solution, could you please provide some sample data in your table PlannerBoardTasks_NODUPLICATES (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Chew_WenJie
Resolver III
Resolver III

Hi, instead of SEARCH i think you can use CONTAINS function for the selected labels. For example,

 

 IF(CONTAINS(PlannerBoardTasks,PlannerBoardTasks[Labels],SELECTEDVALUE([Labels])),COUNT([Labels]),"0")
 
Hope this can helps you.
Anonymous
Not applicable

This unfortunately does not solve my issue.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors