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
Syndicate_Admin
Administrator
Administrator

Condición del filtro

Umadhandapani_1-1642746864553.png

Condición de filtro múltiple;

1) Si selecciono 'Alemania' debería devolver el valor de Profitsum, si selecciono cualquier otro aparte de 'Alemania' debería devolver '0'

2) Cuando multiselecciono, junto con Alemania y algún otro país, debe sumar el valor de 'Profitsum' + 0

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hola

Pruebe esta lógica:

Medida 11 = INTERRUPTOR(verdadero(),Máximo('Ejemplo de matriz'[Marca])="Metal","resultado 1",
ISFILTERADO('Ejemplo de matriz'[Marca])&&
CUENTAS(FILTRO('Ejemplo de matriz','Ejemplo de matriz'[Marca]="Metal"))=1,"resultado 2","resultado 3")

ValtteriN_0-1642747999328.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!


View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hola

Pruebe esta lógica:

Medida 11 = INTERRUPTOR(verdadero(),Máximo('Ejemplo de matriz'[Marca])="Metal","resultado 1",
ISFILTERADO('Ejemplo de matriz'[Marca])&&
CUENTAS(FILTRO('Ejemplo de matriz','Ejemplo de matriz'[Marca]="Metal"))=1,"resultado 2","resultado 3")

ValtteriN_0-1642747999328.png

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!


Syndicate_Admin
Administrator
Administrator

@Umadhandapani , Pruebe una nueva medida como

medida =
var _1 = countrows(allseleceted(Table[País])
var _2 = countrows(filter(allseleceted(Table[Country]), Table[Country] = "Alemania"))
devolución
Interruptor( tru(),
isblank(_2) , 0 ,
_2 =_1 = suma(Tabla[Profitsum])+0 ,
suma(Tabla[Profitsum])
)

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.