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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
DeanUW
Helper I
Helper I

Filter Text within a Column without removing the row in the table

Hello,

 

I have a table that contains sales person data (name, address, license #, etc)  Each sales person can have multiple documents attached to their name.  I have concatenated the document type column so that the sales people only show as one row each.  I want to show the names of the documents along with the file path link to view the documents.  However, I only want the file path for the sales persons License to show for easy access and auditing purpases.

 

I can't use the basic filters cause then it will remove sales people that I don't have licenses on file & the end user of the report will not know that we are missing a license for a specific sales person cause they will be filtered out completely.

 

Example: the sales person has their license, an exhibit, and one other document type on file but I only want to see the name of the license not the name of the other documents; while keeping any sales reps who don't have a license on file visible on the table so that office managers can see that X sales person has their exhibit on file but not their license.  Also I only want each sales rep to have ONE row per person not a different row for each doc type (thus the reason they are concatenated).

 

See snip, you will see the concatenated columns for the Doc List & Doc Name.License report.png

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@DeanUW ,

A couple of ideas that I hope you find useful.

1) Create a new Calculated Column called "Has License":

Has License = SWITCH(
                  TRUE(),
                  CONTAINSSTRING( [Doc List], "LICENSE" ), 1,
                  0 )

Then you can filter on 1's and 0's to see who has licenses or not.

2)  Create a new column for the file path for the  License Document only.  If [Has License] = 1, then show the path, else Blank(). 

3)  Keep the column info for [Other Documents] for those agents who do not have a valid License.

Hope these tips leads you to a solution that works for you.

Regards,

 

View solution in original post

3 REPLIES 3
rsbin
Super User
Super User

@DeanUW ,

A couple of ideas that I hope you find useful.

1) Create a new Calculated Column called "Has License":

Has License = SWITCH(
                  TRUE(),
                  CONTAINSSTRING( [Doc List], "LICENSE" ), 1,
                  0 )

Then you can filter on 1's and 0's to see who has licenses or not.

2)  Create a new column for the file path for the  License Document only.  If [Has License] = 1, then show the path, else Blank(). 

3)  Keep the column info for [Other Documents] for those agents who do not have a valid License.

Hope these tips leads you to a solution that works for you.

Regards,

 

Hello @rsbin,

 

Thank you for the response & the suggestions.  Your ideas worked, I was able to leveraged your "Has License" DAX  & Conditional Formatting to highlight who did & didn't have a license on file; along with a conditional column for the file path to hide the other document data from view. 

 

Thank you again for the help!

@DeanUW ,

Happy to hear you were able to use the suggestions to solve your questions.

Best Regards,

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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