Reply
fav_ccc2021
Helper I
Helper I

Agrupacion de datos power query

Hola a todos , quisiera su ayuda para resolver el siguiente problema.

Necesito transformar esta tabla en power query

 

fav_ccc2021_0-1747763125542.png

 

 

a esto

 

fav_ccc2021_1-1747763166364.png

 

 

Desde ya muchas gracias a todos por su ayuda!!

2 ACCEPTED SOLUTIONS
duiduie
Regular Visitor

Hi @fav_ccc2021 ,

 

You can try the following operations:

1. In Power Query -- Select [Actividad] -- Pivot Column

duiduie_5-1747764615952.png

duiduie_6-1747764633710.png

2. Select all columns of the entire table  -- Replace Values

duiduie_7-1747764647085.png

duiduie_8-1747764656674.png

3. Result:

duiduie_9-1747764670541.png

 

Best regards,

View solution in original post

Hi @fav_ccc2021 ,

 

You can try the following operations:

Create a calculated column:

total no null =
var _a=IF([A]=BLANK(),1,0)
var _b=IF([B]=BLANK(),1,0)
var _c=IF([C]=BLANK(),1,0)
var _d=IF([D]=BLANK(),1,0)
RETURN
_a + _b + _c + _d

Result:

duiduie_2-1747809275484.png

 

Best regards,

View solution in original post

3 REPLIES 3
fav_ccc2021
Helper I
Helper I

esta perfecto!! solo lo ultimo, si quiero agregar una columna contando las filas no null ejemplo 

 

fav_ccc2021_0-1747766655972.png

 

gracias por la ayuda!!

Hi @fav_ccc2021 ,

 

You can try the following operations:

Create a calculated column:

total no null =
var _a=IF([A]=BLANK(),1,0)
var _b=IF([B]=BLANK(),1,0)
var _c=IF([C]=BLANK(),1,0)
var _d=IF([D]=BLANK(),1,0)
RETURN
_a + _b + _c + _d

Result:

duiduie_2-1747809275484.png

 

Best regards,

duiduie
Regular Visitor

Hi @fav_ccc2021 ,

 

You can try the following operations:

1. In Power Query -- Select [Actividad] -- Pivot Column

duiduie_5-1747764615952.png

duiduie_6-1747764633710.png

2. Select all columns of the entire table  -- Replace Values

duiduie_7-1747764647085.png

duiduie_8-1747764656674.png

3. Result:

duiduie_9-1747764670541.png

 

Best regards,

avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)