Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.