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

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

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors