Forum Discussion

fav_ccc2021's avatar
fav_ccc2021
Icon for Helper I rankHelper I
1 year ago
Solved

Agrupacion de datos power query

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

Necesito transformar esta tabla en power query

 

 

 

a esto

 

 

 

Desde ya muchas gracias a todos por su ayuda!!

  • Hi fav_ccc2021 ,

     

    You can try the following operations:

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

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

    3. Result:

     

    Best regards,

  • duiduie's avatar
    duiduie
    1 year ago

    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:

     

    Best regards,

3 Replies

  • duiduie's avatar
    duiduie
    Regular Visitor

    Hi fav_ccc2021 ,

     

    You can try the following operations:

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

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

    3. Result:

     

    Best regards,

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

     

     

    gracias por la ayuda!!

    • duiduie's avatar
      duiduie
      Regular Visitor

      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:

       

      Best regards,