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
JimmyKe
New Member

Multi-IF con análisis de palabras clave

Hola a todos

Ahora tengo una pactice con multi IF con la siguiente condición, tengo cualquiera puede ayudarme a cómo resolverlo. Gracias

FrutasValiososResultados
manzanaMarEntonces
NaranjaTCaccTCTss
manzanaTCaccEntonces
NaranjaAccMERTss
NaranjaMERACCTss
NaranjaMarenlazado
NaranjaAccTss

Como la tabla anterior, si la primera columna "Fruits" encuentra "APPLE" entonces en la columna de resultados necesita mostrar "PAK" y mientras tanto en la segunda columna "Valueable" tiene la palabra clave "acc" o "ACC" entonces en la columna "result" necesita mostrar "TSS" de lo contrario necesita mostrar "LINKED". No tengo idea de cómo lidiar con esta palabra clave de varias columnas con palabra clave. Por favor, ayúdame en esto. ¡Gracias!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hola

Pruebe esta fórmula de columna calculada

Resultados: IF([Fruits] á "APPLE","PAK",IF(SEARCH("acc",[Fruits],0)>0,"TSS","LINKED"))

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hola @JimmyKe ,

Results Column = 
  SWITCH(TRUE(),
    [Fruits] = "APPLE","PAK",
    SEARCH("acc",[Valueable],,0)<>BLANK(),"TSS",
    "LINKED"
   )

2.PNG

Pbix como adjunto.

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Ashish_Mathur
Super User
Super User

Hola

Pruebe esta fórmula de columna calculada

Resultados: IF([Fruits] á "APPLE","PAK",IF(SEARCH("acc",[Fruits],0)>0,"TSS","LINKED"))

Espero que esto ayude.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@JimmyKe

Utilice Interruptor y función superior e inferior para tratar la caja

Switch( TRUE(),
Table[fruits]="APPLE", "PAK",
search("ACC",upper(Table[Valueable]),,0) >0 ,"TSS",
"LINKED"
)

Greg_Deckler
Super User
Super User

Me parece una declaración SWITCH(TRUE()..):

Results Column =
  SWITCH(TRUE(),
    [Fruits] = "APPLE","PAK",
    SEARCH("acc",[Fruits],,0),"TSS",
    "LINKED"
   )

Siempre es increíble para mí cuántos problemas de datos se ocupan de las frutas... Debe haber este enorme ecosistema industrial de personas que trafiquen con datos de frutas con los que nunca he trabajado... Especialmente manzanas y naranjas, es asombroso muchos datos giran en torno a esas dos frutas...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.