cancel
Showing results for
Did you mean:
Regular Visitor

Filtrar los resultados de una medida con funcion IF

Estimados, recurro a ustedes por ayuda.

He llegado a resultados a través de una medida.

Necesito filtrar por un segmentador los resultados de la siguiente medida:

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
Community Support

Hi @LucianoS ,

Please try below steps:

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.

Community Support

Hi @LucianoS ,

Please try below steps:

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

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors