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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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