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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
tatac1412
Helper I
Helper I

Ayuda con los filtros

Hola, me gustaría saber si hay alguna forma de bloquear las opciones de un filtro con otro filtro, ejemplo tengo un filtro 1 donde estan las opciones DM,   HTA      y HTA o DM . me gustaría si filtro DM en el otro filtro 2 solo se me vea "incidentes DM" y no las otras opciones del filtro2.   Agradezco la ayuda

 

Filtro 1                                                       

tatac1412_1-1675996542704.png

Filtro 2 (Que solo se vea la opción de "Incidentes DM" y las otras no se vean

tatac1412_3-1675996656476.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tatac1412 ,

I have created a simple sample, please refer to it to see if it helps you.

Create a measure.

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Column1] ) = "DM"
        && MAX ( 'Table (2)'[Column1] ) = "incidentes DM",
    1,
    IF (
        SELECTEDVALUE ( 'Table'[Column1] ) = "HTA"
            && MAX ( 'Table (2)'[Column1] ) = "incidentes HTA",
        1,
        IF (
            SELECTEDVALUE ( 'Table'[Column1] ) = "HTA O DM"
                && MAX ( 'Table (2)'[Column1] ) = "incidentes HTA o DM",
            1,
            BLANK ()
        )
    )
)

Then filter the measure in the slicer 2 is 1.

vpollymsft_1-1676252664011.png

 

vpollymsft_0-1676252621340.png

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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 @tatac1412 ,

I have created a simple sample, please refer to it to see if it helps you.

Create a measure.

Measure =
IF (
    SELECTEDVALUE ( 'Table'[Column1] ) = "DM"
        && MAX ( 'Table (2)'[Column1] ) = "incidentes DM",
    1,
    IF (
        SELECTEDVALUE ( 'Table'[Column1] ) = "HTA"
            && MAX ( 'Table (2)'[Column1] ) = "incidentes HTA",
        1,
        IF (
            SELECTEDVALUE ( 'Table'[Column1] ) = "HTA O DM"
                && MAX ( 'Table (2)'[Column1] ) = "incidentes HTA o DM",
            1,
            BLANK ()
        )
    )
)

Then filter the measure in the slicer 2 is 1.

vpollymsft_1-1676252664011.png

 

vpollymsft_0-1676252621340.png

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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

Mil gracias!!! funciono perfectamente, me has salvado de una!!!!!

lbendlin
Super User
Super User

- use fields from the same table

- use your data model to create dependencies between fields. 

- use measures to implement your logic and then apply these measures as filters on the visual.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors