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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Creación de una columna con otras 3 columnas

Hola, espero que todos se mantengan seguros y bien.

Tengo 3 columnas, solo una de las cuales se rellena cuando se produce una transacción. Estoy intentando crear una columna (no en Power Query) que combine esos resultados. Así, por ejemplo,
TRANS1 TRANS2 TRANS3 Mi columna deseada

Banana Banana

Uva

Piña de piña

Kiwi Kiwi

Espero que tenga sentido, estoy seguro de que me estoy perdiendo una función muy obvia pero no puedo ver la madera para los árboles en este.

¡Espero que alguien pueda ayudarme a crear mi columna deseada!

Gracias de antemano 🙂

4 REPLIES 4
amitchandak
Super User
Super User

@featleyd , Pruebe una nueva columna como

fusión([TRANS1],[TRANS2],[TRANS3])

Greg_Deckler
Super User
Super User

Una forma de hacerlo DAX:

Column =
  SWITCH(TRUE(),
    NOT(ISBLANK([TRANS1])),[TRANS1],
    NOT(ISBLANK([TRANS2])),[TRANS2],
    NOT(ISBLANK([TRANS3])),[TRANS3]
  )


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Esta es una excelente solución!
Muchas gracias 🙂

Greg_Deckler
Super User
Super User

Parece que debe anular el pivote de esas columnas en Power Query.


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors