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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
learn4life
Frequent Visitor

Filter a slicer value and the data table updates with corresponding value

Power BI Community,

 

I am currently working on a power bi project and am looking for assistance. 
Scenario, let's say a user selects a value from the slicer this should update a data table with related values, for example, below is a sample table with 3 columns (country, operator, ownership) the slicer will be based on operator, so let's say Company A is selected then the data table should display Belgium and USA since it's involved in both countries.  In addition, for ownership it should only display the ownership for Company A.  Table 2 below shows the expected outcome.  Appreciate your help. 

 

countryOperatorOwnership
BelgiumCompany ACompany A (33.333%), Company B (33.333%), Company C (33.333%)
BelgiumCompany ACompany A (100%)
ChinaCompany BCompany B (100%)
ChinaCompany CCompany C (100%)
USACompany BCompany A (33.333%), Company B (66.333%)

 

Desired result 
OperatorcountryOwnership
Company ABelgium33.33%
Company AUSA33.33% 
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@learn4life see attached, you need to transform the data in PQ. I have added the transformation steps to shape the data. You can use that and improve it as per your requirements.

 

 



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.

View solution in original post

7 REPLIES 7
parry2k
Super User
Super User

@learn4life see attached, you need to transform the data in PQ. I have added the transformation steps to shape the data. You can use that and improve it as per your requirements.

 

 



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 thanks this will get the job done. 

learn4life
Frequent Visitor

@MNedix @parry2k apologies for the confusion, Belgium 100% should show as well, I've cleaned up the outcome table to make things clear, hope this clarifies. 
Desired output

OperatorcountryOwnershipProject
Company ABelgium33.33%Project 1
Company ABelgium100%Project 2
Company AUSA33.33%Project 5

 

parry2k
Super User
Super User

@learn4life always tag the person to whom you are replying.  Just basics of communicating on the forum. Your last reply is not clear, it is the answer for which question? 



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.

learn4life
Frequent Visitor

It's currently as text. Thanks

parry2k
Super User
Super User

@learn4life why the company A Belgium 100% is not showing?



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.

MNedix
Solution Supplier
Solution Supplier

How is the percentage of Ownership calculated? Is this something coming from the source file as a percentage or txt?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors