Forum Discussion

learn4life's avatar
learn4life
Frequent Visitor
2 years ago
Solved

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% 

7 Replies

  • MNedix's avatar
    MNedix
    Icon for Solution Sage rankSolution Sage

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

  • 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? 

  • learn4life's avatar
    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