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
flexcodec
Regular Visitor

create a slicer for unique and multiple value in a row

Hello, 
please i've two tables linked already in relationship this is my problem  i want to create a slicer that will filter b showing not only the unique value but also the value inside the list separated by a comma.

 

MARKER_TWO

NAME_ID      PARENT_ID    NAME_TITLE
102MONDAY
205TUESDAY
508WEDNESDAY

 

MARKER_MAIN

NAME_ID......NAME_TITLE......
10,20....MONDAY,TUESDAY......
50,10,20....WEDNESDAY,MONDAY,TUESDAY....
10....MONDAY....
50.....WEDNESDAY....

 

NOW THE 2 TABLES ARE IN RELATIONSHIP ALREADY.

 

NOW USE MY I APPLY MY SLICER TO FILTER THE NAME_TITLE PRESENT IN MY DASHBOARD  IN ONLY GET THIS:

 

(DROPDOWN)SLIDER = MONDAY

 

NAME_TITLE.........
 .........
 ........
MONDAY........
 .......

 

I WANT MY SLICER TO SHOW ALSO THE VALUE IN THE LIST SEPARATED BY COLUMN LIKE THIS :

 

(DROPDOWN)SLIDER = MONDAY

 

NAME_TITLE
MONDAY,TUESDAY
WEDNESDAY,MONDAY,TUESDAY
MONDAY
 

 

THANKS IF YOU CAN HELP ME.

1 ACCEPTED SOLUTION

Hi @flexcodec ,

May I ask if you have resolved this issue?If not,please share the sample data. If it resolved , please share the solution here. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

View solution in original post

10 REPLIES 10
Ritaf1983
Super User
Super User

Hi @flexcodec 

If the user only needs to select a single value from the slicer (e.g., "Monday"), there's a simple solution using a disconnected table and the SEARCH function in a DAX measure to filter rows that contain the selected value inside the comma-separated text field.

I've prepared a PBIX example to demonstrate this approach.

 

Ritaf1983_0-1746672929333.png

indicatior =
var selected_ = SELECTEDVALUE(slicer[NAME_TITLE])
Return
SEARCH(selected_,SELECTEDVALUE('Table (2)'[NAME_TITLE]),,0)
Ritaf1983_1-1746672982072.png

The pbix is attached

However, if multiple selection is required (e.g., selecting "Monday" and "Tuesday" together), it becomes significantly more complex. You would need to either:

  • create a table with all possible combinations of the values (e.g., "Monday,Tuesday", "Monday,Wednesday", etc.),

  • or dynamically split and normalize the values into rows and use intermediary relationships and advanced DAX logic.

    Both is veri complexed and recommend to consider just to split the rows , 1 row per weekday.

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
ryan_mayu
Super User
Super User

@flexcodec 

do not create relationship between two tables.

then create a measure

 

Measure = if( search(max('Table'[Name_Title]),max('Table (2)'[NAME_TITLE]),1,0)<>0,1)
 
add this measure to visual filter and set to 1
11.png
pls see the attachment below

 





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

Proud to be a Super User!




Thank you your solution is perfect but the problem that am facing is it's removing all the empty rows in the column. 

please is there an way to filter without removing the empty rows but still doing the same thing ?

 

@flexcodec 

if you want to display the empty row ,you can try this

Measure = if( search(max('Table'[Name_Title]),max('Table (2)'[NAME_TITLE]),1,0)<>0||max('Table (2)'[NAME_TITLE])="",1)
 
11.png




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

Proud to be a Super User!




Thanks for the solution but it's duplicationg the value on the whole table 

then could you pls update your sample data and the expected output?





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

Proud to be a Super User!




SORRY BUT THERE IS NO DUPLICATED VALUE IT WAS A CONFUSION IT'S REMOVING SOME ROWS IN THE COLUMN.
EG: I'VE 0093 AS AN INDEX 
0093      MONDAY
0093      TUESDAY WEDNESDAY
0093      MONDAY,TUESDAY 

ONCE THE FILTER IS APPLIED IT'S REMOVES AUTHOMATICALLY ONE 0093 AND LEAVE 1. ONCE I REMOVE ALL THE VALUE ARE OK

Hi @flexcodec ,

Can you please confirm whether the issue has been resolved or not. If resolved, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @flexcodec ,

We really appreciate your efforts and for letting us know the update on the issue.Please let me know if you have any further questions or if you'd like to discuss this further.

Thank you,
Menaka 

Hi @flexcodec ,

May I ask if you have resolved this issue?If not,please share the sample data. If it resolved , please share the solution here. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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