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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ponchibonos
Regular 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
v-rzhou-msft
Community Support
Community Support

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
v-rzhou-msft
Community Support
Community Support

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 @v-rzhou-msft this was the solution. 

 

lbendlin
Super User
Super User

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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