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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.