cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## Filtrar los resultados de una medida con funcion IF

Estimados, recurro a ustedes por ayuda.

Estaba intentando a través de Tablas desconectadas pero no tuve éxito.

Ya se que esto puedo lograrlo si fuese una columna dentro de la tabla.

Muy agradecido si me pueden ayudar o guiar.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LucianoS ,

1. below is my test table

Table:

Table2:

2. create measure with below dax formula

``Measure = IF(MAX('Table'[Column1])>MAX('Table'[Column2]),"Seguro","Reponer")``
``````Measure2 =
VAR cur_choice =
SELECTEDVALUE ( Table2[Column1] )
VAR _m = [Measure]
RETURN
IF ( ISFILTERED ( Table2[Column1] ), IF ( cur_choice = _m, 1 ), 1 )
``````

3. add table visual with Table fields and Measure, add slicer visual with Table2 field, add Measure2 to the table visual filter pane.

Please refer the attached .pbix file.

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @LucianoS ,

1. below is my test table

Table:

Table2:

2. create measure with below dax formula

``Measure = IF(MAX('Table'[Column1])>MAX('Table'[Column2]),"Seguro","Reponer")``
``````Measure2 =
VAR cur_choice =
SELECTEDVALUE ( Table2[Column1] )
VAR _m = [Measure]
RETURN
IF ( ISFILTERED ( Table2[Column1] ), IF ( cur_choice = _m, 1 ), 1 )
``````

3. add table visual with Table fields and Measure, add slicer visual with Table2 field, add Measure2 to the table visual filter pane.

Please refer the attached .pbix file.

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors