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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
attilajozsef712
Regular Visitor

Multi-selection filter applied on multiple fields

Hi!

I have a datatable where I have transaction information. I want to set filters on club names (so selecting club A and club B) and show all related rows in the table whether the clubs are seller or buyer in the transaction (so if a club sold a player that is a distinct line in the table and if the same club bought a player that is an other distinct line). I also want to have a possibility to select multiple regions or countries and using them as a filter on my table.

The dataset is not so complex, I have a seller company and a buyer company, both have region and country information and the fe of the transaction and the target of the transaction. 

1 ACCEPTED SOLUTION

Hi  @attilajozsef712 ,

 

Create  a new table as below:

Table 2 =
DISTINCT (
    UNION (
        SELECTCOLUMNS (
            'Table',
            "Country", 'Table'[Country A],
            "Region", 'Table'[Region A],
            "Club", 'Table'[Club Seller],
            "Target", 'Table'[Target],
            "Transfer", 'Table'[Transfer Price]
        ),
        SELECTCOLUMNS (
            'Table',
            "Country", 'Table'[Country B],
            "Region", 'Table'[Region B],
            "Club", 'Table'[Club Buyer],
            "Target", 'Table'[Target],
            "Transfer", 'Table'[Transfer Price]
        )
    )
)

And you will see:

vkellymsft_0-1631869650189.png

Then you could do any filters as you like.

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

View solution in original post

2 REPLIES 2
attilajozsef712
Regular Visitor

Country ARegion AClub SellerCountry BRegion BClub BuyerTargetTransfer Price
ChinaAsiaClub AEnglandEuropeClub CPlayer A10000000
BrasilSouth AmericaClub BEnglandEuropeClub CPlayer B2000000
EnglandEuropeClub CFranceEuropeClub DPlayer C15000000
EnglandEuropeClub CSpainEuropeClub EPlayer D12000000
FranceEuropeClub DItalyEuropeClub FPlayer E6000000
FranceEuropeClub DGermanyEuropeClub IPlayer F75800000
FranceEuropeClub DBelgiumEuropeClub JPlayer G13000000
USANorth AmericaClub GBrasilSouth AmericaClub BPlayer H2650000
EgyptAfricaClub LAustraliaAustraliaClub ZPlayer I120000

Hi  @attilajozsef712 ,

 

Create  a new table as below:

Table 2 =
DISTINCT (
    UNION (
        SELECTCOLUMNS (
            'Table',
            "Country", 'Table'[Country A],
            "Region", 'Table'[Region A],
            "Club", 'Table'[Club Seller],
            "Target", 'Table'[Target],
            "Transfer", 'Table'[Transfer Price]
        ),
        SELECTCOLUMNS (
            'Table',
            "Country", 'Table'[Country B],
            "Region", 'Table'[Region B],
            "Club", 'Table'[Club Buyer],
            "Target", 'Table'[Target],
            "Transfer", 'Table'[Transfer Price]
        )
    )
)

And you will see:

vkellymsft_0-1631869650189.png

Then you could do any filters as you like.

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.