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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
alleckii
Frequent Visitor

Key values in one cell.

Hi,

 

I would like my dashboard to have the option to select specific values from one table, based on the relationship with the other table. The problem is that in the table that the filter is supposed to go after, the keywords in some rows occur after a comma:

 

Filter table:

IDDescription
CS1.01

       ....

   ....       ....
CS1.10       ....
CS2.01       ....
   ....       ...
CS6.10       ....

 

The table by which I want to filter

IDNamePriceCODE
1........CS2.05, CS2.07
2........CS1.01,  CS1.02,  CS1.04,  CS1.04,  CS1.05,  CS1.06,  CS1.07,  CS1.08,  CS1.09, CS2.03
3........CS2.01
............CS3.10, CS5.05
45........CS4.08, CS5.04, CS5.09

 

 

Is it possible that by selecting an item such e.g. CS1.05 in the first table, I will get all the rows containing this code from the second table, or is the data badly designed?

 

Thanks for help!

Alleckii

1 ACCEPTED SOLUTION
alleckii
Frequent Visitor
4 REPLIES 4
alleckii
Frequent Visitor

parry2k
Super User
Super User

@alleckii Ha! I missed that, you don't need to create a relationship but you can use the solution provided in one of my 1st videos here. https://youtu.be/zS1IDl3DLak

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

parry2k
Super User
Super User

@alleckii the best practice would be to split your table by comma on rows in PQ and then you don't need to anything extra and it should work.

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

@parry2k Are You sure thath will work? I tried to do it this way, but the relationship between the tables did not allow to select after several columns. When I wanted to select CS1.01, only the rows that had this code in the column followed by the active relationship with the first table were selected.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.