Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Contar valores

Buenas tardes comunidad! Tengo una tabla en la cual para cada cliente me dice la cantidad de visitas semanales con el siguiente formato.

 

Necesito realizar una tabla resumen para poder contar rápidamene la cantidad de clientes que tienen 1 visita semanal, y la cantidad que tienen 2 visitas. Debería tener un formato similar al de la tabla de abajo. 

Para este ejemplo serían 3 clientes que tienen una visita semanal, y 6 clientes con 2 visitas.

 

El dato de visitas en la tabla original proviene de contar la cantidad de filas que tiene cada cliente con este formato

 

Podrían guiarme sobre como hacer esto? Desde ya muchas gracias!

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    Provide another way of thinking.

    In PowerQuery Editor --> Reference the table;

    Selcet these columns and right-click --> unpivot columns;

    Filter rows;

    Group rows

    Then create a table visual and drag the [Count] with the measure count of [Count] into it.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

     

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Provide another way of thinking.

    In PowerQuery Editor --> Reference the table;

    Selcet these columns and right-click --> unpivot columns;

    Filter rows;

    Group rows

    Then create a table visual and drag the [Count] with the measure count of [Count] into it.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Muchas gracias Anonymous !! Funciona perfecto para lo que necesitaba hacer!