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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Medir mayor/menos que el botón

Hola

Tengo un KPI calculado por diferentes niveles de agregación (no puede ser una columna calculada).

region.PNG

La idea sería 2 botones, uno el >50 y el otro <50.

Funciona perfectamente haciendo esto, pero me preguntaba si es posible replicar este mismo filtro con dax (he probado muchas cosas) :

Captura.PNG

¿Alguna idea?

¡¡Muchas gracias!!

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hola @alejandro7bf

Crear una medida

Measure = IF([Kpi]>50,[Kpi])

Capture16.JPG

También puede crear un parámetro what-if, que haga clic en la flecha "abajo" para seleccionar el tipo de segmentación de datos.

Capture4.JPGCapture6.JPG

A continuación, cree una medida

Measure = var mins=MIN(Parameter[Parameter]) var maxs=MAX(Parameter[Parameter]) return IF([KPI]<=maxs&&[KPI]>=mins,[KPI])

Capture7.JPG

Saludos
Maggie
Equipo de Apoyo Comunitario _ Maggie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

DataZoe
Employee
Employee

@alejandro7bf has probado algo como esto

1. Crear una tabla (introducir datos) con > 50 y <50 (KPIToggle y columna llamada Toggle)

2. Crear nueva medida

KPI Filter =
SWITCH (
    SELECTEDVALUE ( KPIToggle[Toggle] ),
    "<50", FILTER ( VALUES ( [RegionName] ), [KPI] < 50 ),
    ">=50", FILTER ( VALUES ( [RegionName] ), [KPI] >= 50 ),
    [KPI]
)

3. use esa medida en su mesa

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Anonymous
Not applicable

Gracias por responder,

Lo he intentado, pero como [KPI] no es una columna sino una medida, ese enfoque no funciona. 😞

@alejandro7bf por lo general cuando las medidas se comprueban dentro de la filter() funciona bien para mí. Si tiene datos de muestra, sería más fácil ayudarle.

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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