cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Slicer capabilities with multiple text items in column

Hello community,

 

I have a problem that I'm sure is not unique but I have not been able to find help and I've spent way too much time trying to figure this out for myself. 

 

I have a dataset that includes project management information, each project has a number with various things relating to that project. However, this data set contains bi weekly updates of the projects, so each entry has an index number and a list date (when the information was updated). 

 

Dataset structureDataset structure

 

The issue is with the LOB column. Projects are allowed to have several LOBs associated with the project, but the combinations should not be an option in a slicer (see below). For example, when someone wants to slice the data based on G on the most recent date, rows 6( F,G,H) ,8 (I,G) ,and 10 (F,G,H) should all show up. 

 

Capture1.PNG

 

I have tried several different versions of the CONTAINS function with no success, currently the dataset is running based on the first LOB that shows up in the cell (meaning if a combination starts with F, that combination will only show up when the slicer is a F). 

In similar situations I've extracted the values based on a delimiter and unpivoted the columns, but that doesn't work in this case because we cannot have duplicate index values and we don't know how long these combinations can be. My hunch is that there's a way this can be done with a combination of the CONTAINS and IF function but my DAX skills are not that advanced.

 

 

This community has been very helpful to me in the past so thank you in advance for helping me.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Slicer capabilities with multiple text items in column

Hi @cbrightly1 ,

 

Please check:

 

1. You can use a custom visual -- "Text Filter".

TEXT filter.gif

 

2. Or, you can create a measure and then use it as a filter.

Measure = 
VAR SelectedOption =
    SELECTEDVALUE( 'Slicer Table'[Slicer Options] )
RETURN
    IF ( SEARCH ( SelectedOption, MAX ( 'Table'[LOB] ),, BLANK () ) <> BLANK (), 1 )

measure filter.gif

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Super User IV
Super User IV

Re: Slicer capabilities with multiple text items in column

@cbrightly1 the best option would be to split the column in power query and then use it for the slicer, share the pbix file with sample data and I can get you the solution.






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Frequent Visitor

Re: Slicer capabilities with multiple text items in column

@parry2k  I've put the link in the original post.

Community Support
Community Support

Re: Slicer capabilities with multiple text items in column

Hi @cbrightly1 ,

 

Please check:

 

1. You can use a custom visual -- "Text Filter".

TEXT filter.gif

 

2. Or, you can create a measure and then use it as a filter.

Measure = 
VAR SelectedOption =
    SELECTEDVALUE( 'Slicer Table'[Slicer Options] )
RETURN
    IF ( SEARCH ( SelectedOption, MAX ( 'Table'[LOB] ),, BLANK () ) <> BLANK (), 1 )

measure filter.gif

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: Slicer capabilities with multiple text items in column

Thank you SO much! I used the measure option because I had to provide the options instead of hoping the user would know with the text box. Your post was extremely helpful and worked perfectly- the gifs really helped! 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors