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

Columna de recuento calculada por grupo

Hola a todos,

Tengo una columna con cuatro grupos y quería crear otra columna para tener un indicador de recuento en cada grupo de esta columna.

Capture.JPG

¿Cómo puedo hacer eso?

Mi conjunto de datos

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8vRTMDayVNJRUorVIZFnYmQA5zkpGBmbEMkzNjCgKQ/VZZTzYgE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Group = _t, #"Cont by Group" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Group", type text}, {"Cont by Group", type text}})
in
#"Changed Type"

1 ACCEPTED SOLUTION
AlB
Super User
Super User

Hola @XTF_2020

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8vRTMDayVIrVIY5pYmQAYTopGBmb4GcaGxhQi4lkMRnMWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Group = _t]),
    #"Grouped Rows" = Table.Group(Source, {"Group"}, {{"Cont by Group", each List.Numbers(1,Table.RowCount(_))}}),
    #"Expanded Cont by Group" = Table.ExpandListColumn(#"Grouped Rows", "Cont by Group")
in
    #"Expanded Cont by Group"

Por favor, marque la pregunta resuelta cuando haya terminado y considere dar un pulgar hacia arriba si las publicaciones son útiles.

Póngase en contacto conmigo de forma privada para obtener asistencia con cualquier necesidad de BI a gran escala, tutoría, etc.

Salud

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hola

Consulte la solución ofrecida por ImkeF aquí - Resuelto: Índice de columna personalizada o Clasificación por otra columna - Comunidad de Microsoft ....

Espero que esto ayude.


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

Hola @XTF_2020

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8vRTMDayVIrVIY5pYmQAYTopGBmb4GcaGxhQi4lkMRnMWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Group = _t]),
    #"Grouped Rows" = Table.Group(Source, {"Group"}, {{"Cont by Group", each List.Numbers(1,Table.RowCount(_))}}),
    #"Expanded Cont by Group" = Table.ExpandListColumn(#"Grouped Rows", "Cont by Group")
in
    #"Expanded Cont by Group"

Por favor, marque la pregunta resuelta cuando haya terminado y considere dar un pulgar hacia arriba si las publicaciones son útiles.

Póngase en contacto conmigo de forma privada para obtener asistencia con cualquier necesidad de BI a gran escala, tutoría, etc.

Salud

SU18_powerbi_badge

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.