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

Crear 3 filas para cada registro

Quiero crear una columna "código" con 3 valores para cada empresa.

Eg:

Código de empresa

Un 12A

Un 16B

Un 14C

B 12A

B 16B

B 14C

¡Ayuda!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@adi0007 , Supongamos que tiene cide de tabla, donde tiene estos tres códigos en filas

12a
16b
14c

O cree una tabla utilizando introducir datos. Supongamos que tiene una tabla en la que sólo tiene una sociedad que puede tomar una sociedad distinta

nueva tabla: crossjoin(distinct(Table1[company]),code) //code es una tabla

View solution in original post

4 REPLIES 4
AntrikshSharma
Community Champion
Community Champion

@adi0007 Si no tiene ninguna tabla en el modelo, puede utilizar esto:

Table =
GENERATE (
    { "A", "B" },
    SELECTCOLUMNS ( { "12A", "16B", "14C" }, "A", [Value] )
)

1.PNG

Si tiene 2 tablas en el modelo, puede utilizar esto:

Table = 
GENERATE(
    DISTINCT ( Company[Company] ),
    DISTINCT ( Code[Code] )
)

1.PNG

amitchandak
Super User
Super User

@adi0007 , Supongamos que tiene cide de tabla, donde tiene estos tres códigos en filas

12a
16b
14c

O cree una tabla utilizando introducir datos. Supongamos que tiene una tabla en la que sólo tiene una sociedad que puede tomar una sociedad distinta

nueva tabla: crossjoin(distinct(Table1[company]),code) //code es una tabla

Anonymous
Not applicable

@amitchandak ,

este dax debe escribirse en la columna calculada??

pranit828
Community Champion
Community Champion

Hola @adi0007

Por favor, consulte el siguiente enlace si ayuda

https://radacad.com/creating-a-table-in-power-bi-using-dax-table-constructor





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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.

Top Kudoed Authors