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
AshwinC
Frequent Visitor

Filter with Text Contains

Hi All,

 

I have Column which has muliple Values

 

Option TypeDate1Date 2
Option1, Option2, Option310/02/202212/02/2022
Option1, Option315/01/202216/01/2022
Option218/01/202230/01/2022
Option112/01/202230/01/2022

 

I need to create report with a Slicer of Unique Values

 

TypeCountAverage Days (Days1 to Days2)
Option 133
Option 224
Option 325

 

I need to able to summarize the table, like Average Days between Days1 and Days2, Count of Rows etc.

 

Is there a way where i can achieve this?

 

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @AshwinC ,

 

Believe the best option is to make a transformation on the query editor and split those options by row:

MFelix_0-1648218893565.pngMFelix_1-1648218921341.pngMFelix_2-1648218960038.png

This will allow to have the final result directly on your table.

 

If this is not possible then you can try to do the following:

  • Create a disconnected table with all your options
  • Then create the following measure

 

CountRows = 
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            'Table (2)',
            "StringFind", CONTAINSSTRING ( 'Table (2)'[Option Type], SELECTEDVALUE ( Options[Options] ) )
        ),
        [StringFind] <> BLANK ()
    )
)

 

MFelix_3-1648220183918.png

 

 

Regarding the second value you present how is it calculated?

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @AshwinC ,

 

Whether the advice given by @MFelix  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

MFelix
Super User
Super User

Hi @AshwinC ,

 

Believe the best option is to make a transformation on the query editor and split those options by row:

MFelix_0-1648218893565.pngMFelix_1-1648218921341.pngMFelix_2-1648218960038.png

This will allow to have the final result directly on your table.

 

If this is not possible then you can try to do the following:

  • Create a disconnected table with all your options
  • Then create the following measure

 

CountRows = 
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            'Table (2)',
            "StringFind", CONTAINSSTRING ( 'Table (2)'[Option Type], SELECTEDVALUE ( Options[Options] ) )
        ),
        [StringFind] <> BLANK ()
    )
)

 

MFelix_3-1648220183918.png

 

 

Regarding the second value you present how is it calculated?

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.

Top Solution Authors
Top Kudoed Authors