Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Buenos días,
En la tabla tengo algunos clientes que tienen más de una cuenta y las quiero agrupar para tener el valor total de las cuentas, pero que siga en la tabla de Clientes.
Ejemplo:
1. Empresa 1 = 100€
2. Empresa 1 con Rueda = 100€
3. Empresa 1 con Volante = 100€
4. Empresa 2 = 100€
5. Empresa 3 = 100€
6. Empresa 4 = 100€
7. Empresa 4 con Rueda = 100€
8. Empresa 4 con Rueda y Volante = 100€
9. Empresa 5 = 100€
10. Empresa 6 = 100€
La idea es poder agrupar por nombre que coincide "Empresa 1" y que agrupe las 3 cuentas con la cifra total 300€. La "Empresa 4" y que agrupe las 2 cuentas con la cifra total 200€. Quedando la tabla:
1. Empresa 1 = 300€
2. Empresa 2 = 100€
3. Empresa 3 = 100€
4. Empresa 4 = 200€
5. Empresa 5 = 100€
6. Empresa 6 = 100€
Gracias por vuestra colaboración.
Solved! Go to Solution.
Hi @rimbi ,
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a column
Column = LEFT('Table'[Account],9)
2. Use the following DAX expression to create a table
Table 2 = SUMMARIZE('Table','Table'[Column],"Amount",SUM('Table'[Amount]))
3.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rimbi ,
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a column
Column = LEFT('Table'[Account],9)
2. Use the following DAX expression to create a table
Table 2 = SUMMARIZE('Table','Table'[Column],"Amount",SUM('Table'[Amount]))
3.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hola, muchas gracias por la ayuda.
La solución funciona.
Pero si tengo diferentes nombres con más caraceteres como lo hago?:
Ejemplo:
Empresa 1 | 100 |
Empresa 1 con Rueda | 100 |
Empresa 1 con volante | 100 |
Empresa de servicios 2 | 100 |
Empresa de servicios 2 con rueda | 100 |
Empresa de bici 3 | 100 |
Empresa de camion 4 | 100 |
Empresa de camion 4 con rueda | 100 |
empresa de camion 4 con volante | 100 |
Empresa 1 | 300 |
Empresa de servicios 2 | 200 |
Empresa de bici 3 | 100 |
Empresa de camion 4 | 300 |
Muchas gracias
User | Count |
---|---|
100 | |
87 | |
81 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |