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
Anonymous
Not applicable

Rellenar columna con valores distintos de otra columna de otra tabla

Hola, como sugiere el título, estoy buscando rellenar una columna en una nueva tabla con valores distintos de una columna en una tabla existente.

Por ejemplo, Tabla1, Columna1 , 1, 2, 2, 3, 4, 4, 5,

Debe parecerse a NewTable, NewColumn , 1, 2, 3, 4, 5

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

Por favor, intente

Table2 - DISTINCT(Table1[Column1])

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

@mcrackin - Debe ser:

NewTable = DISTINCT(SELECTCOLUMNS('Table1',"NewColumn",[Column1]))

Follow on LinkedIn
@ 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...

¡Hola! ¿Puede adaptar esta fórmula para crear una nueva columna con valores únicos a partir de otras dos columnas? Decir

NewTable = DISTINCT(SELECTCOLUMNS('Table1',"NewColumn",{[Column1],[Column2]})

¿O algo por el estilo?

mahoneypat
Employee
Employee

Por favor, intente

Table2 - DISTINCT(Table1[Column1])

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

¿Dónde introduzlo este código?

@mcrackin -

Greg_Deckler_0-1598314112972.png


Follow on LinkedIn
@ 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
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.