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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ponchibonos
Frequent Visitor

Two columns as segmentation

I have a table with two columns of responsibles of a Proyect. 

Is possible to slice my data with the two columns independently?

ponchibonos_0-1675442130674.png

For example: When I selected "Ale" the slicer shows the data in wich Ale appears in both columns RESPONSABLE and RESPONSABLE 2?

 

At now, when I selected "Ale" just shows the data of the column RESPONSABLE

 

ponchibonos_1-1675442381608.png

 

Thanks in advanced

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ponchibonos ,

 

In addintion to  lbendlin's reply, you need to create an unrelated DIMRESPONABLE table and then create a measure to filter your visual.

DIMRESPONSABLE = 
DISTINCT (
    UNION ( VALUES ( 'Table'[RESONSABLE] ), VALUES ( 'Table'[RESONSABLE 2] ) )
)

Measure:

Filter = 
VAR _SELECTED =
    VALUES ( DIMRESPONSABLE[RESONSABLE] )
RETURN
    IF (
        MAX ( 'Table'[RESONSABLE] )
            IN _SELECTED
                || MAX ( 'Table'[RESONSABLE 2] ) IN _SELECTED,
        1,
        0
    )

Add this measure into visual level filter and set it to show items when value = 1. Result is as below.

RicoZhou_1-1675676767603.png

 

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ponchibonos ,

 

In addintion to  lbendlin's reply, you need to create an unrelated DIMRESPONABLE table and then create a measure to filter your visual.

DIMRESPONSABLE = 
DISTINCT (
    UNION ( VALUES ( 'Table'[RESONSABLE] ), VALUES ( 'Table'[RESONSABLE 2] ) )
)

Measure:

Filter = 
VAR _SELECTED =
    VALUES ( DIMRESPONSABLE[RESONSABLE] )
RETURN
    IF (
        MAX ( 'Table'[RESONSABLE] )
            IN _SELECTED
                || MAX ( 'Table'[RESONSABLE 2] ) IN _SELECTED,
        1,
        0
    )

Add this measure into visual level filter and set it to show items when value = 1. Result is as below.

RicoZhou_1-1675676767603.png

 

Best Regards,
Rico Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks @Anonymous this was the solution. 

 

lbendlin
Super User
Super User

You need to use disconnected slicers if you want independent filters.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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