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
DavidWaters100
Post Patron
Post Patron

crear una nueva tabla con valores distintos de una columna y el valor de otra columna

Hola

Estoy luchando para lograr algo que parece bastante simple!

Quiero crear una nueva tabla usando DAX con valores distintos de una columna, y el valor de otra columna - en la tabla original hay varias entradas, pero cada una tiene dos referencias diferentes que son las mismas de cada fila. Vea el siguiente ejemplo:

Tabla original

Ref1 Ref2 Importe

CDD ROO 34

CDD ROO 567

ABB TEE 467

ABB TEE 45

Nueva tabla

Ref1 Ref2

CDD ROO

ABB TEE

Puedo crear la primera columna solo con DISTINCT, pero parece que no puedo devolver el otro valor. He intentado LOOKUPVALUE, pero devolvió espacios en blanco!

Cualquier ayuda muy apreciada.

Gracias

David

Proud to be a Super User!
1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hola @DavidWaters100 ,

ver figura:

25-04-_2020_17-09-52.pngSaludos FrankAT

View solution in original post

3 REPLIES 3
DavidWaters100
Post Patron
Post Patron

Muchas gracias - ambas respuestas que he aceptado como soluciones!

Proud to be a Super User!
FrankAT
Community Champion
Community Champion

Hola @DavidWaters100 ,

ver figura:

25-04-_2020_17-09-52.pngSaludos FrankAT

Greg_Deckler
Super User
Super User

Tabla:SELECTCOLUMNS('Table',"Ref1",[Ref1],"Ref2",[Ref2]))


@ 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.