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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (12,595)