cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HenryJS
Post Prodigy
Post Prodigy

Filas de grupo: Nueva columna

Hola a todos

¿Cómo puedo agrupar filas de datos

Por lo tanto, 'Advert - Considering' y 'Advert - Not Progressing' son una nueva fila llamada 'Advert Actions'. Y los condes se sumarán

Capture1.JPG

nombre de usuarioActionRefActionNameActionDate
Katie Peachey3169223Anuncio - Teniendo en cuenta17/04/2020 11:49
Katie Peachey3169183Anuncio - Teniendo en cuenta17/04/2020 10:40
Sally Miller3146976Anuncio - No progresando31/03/2020 10:15
Sally Miller3146971Anuncio - No progresando31/03/2020 10:13
Sally Miller3145364Anuncio - No progresando31/03/2020 10:01
Sally Miller3144313Anuncio - No progresando31/03/2020 09:35
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hola @HenryJS,

¿Alguna cadena similar en los registros que se usapara crear una nueva columna como grupo? Si no es así, me gustaría sugerirle que intente crear variables de valores y las haya utilizado para compararlas con el valor actual para asignar el grupo.

Muestra:

Group =
VAR listA = { "A", "B", "C", "D" }
VAR listB = { "E", "G", "H" }
RETURN
    IF (
        [Column] IN listA,
        "GroupA",
        IF ( [Column] IN listB, "GroupB", "Ungrouped" )
    )

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hola @HenryJS,

¿Alguna cadena similar en los registros que se usapara crear una nueva columna como grupo? Si no es así, me gustaría sugerirle que intente crear variables de valores y las haya utilizado para compararlas con el valor actual para asignar el grupo.

Muestra:

Group =
VAR listA = { "A", "B", "C", "D" }
VAR listB = { "E", "G", "H" }
RETURN
    IF (
        [Column] IN listA,
        "GroupA",
        IF ( [Column] IN listB, "GroupB", "Ungrouped" )
    )

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

amitchandak
Super User IV
Super User IV

@HenryJS,

Refiera si esto puede ayudar: https://radacad.com/grouping-and-binning-step-towards-better-data-visualization



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors