Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola
No estoy seguro de si se trata de una pregunta de relación o tal vez una pregunta de buenas prácticas.. de cualquier manera, tengo 2 tablas que se cargan en BI.
1. Detalle de ventas
2. Dimensión del cliente (que tiene un nombre de cliente y un nombre de representante de ventas)
El informe de detalle de ventas tiene un código para los representantes de ventas, no está limpio, por lo que hemos ido con el uso del nombre de cliente al nombre de representante de ventas. Sin embargo, hay algunas cuentas que se dividen entre dos representantes de ventas y no estoy seguro de la mejor manera de conseguir que los informes funcionen.
Ejemplo a continuación: Honda se vende principalmente de Sam (código de venta 1), pero a veces vendido por Bob (código de venta 2).
Ford es similar, las ventas primarias de Bob (código de venta 2), pero a veces vendido por Tyler (código de venta 5).
Entiendo si creo una dimensión de código de ventas y construyo la relación a la salida de que para obtener el nombre del representante de ventas correcto, pero el problema es que los datos por código de ventas son muy desordenados y somos mucho más limpios usando el nombre del cliente en este momento. Pero hay algunas cuentas que en realidad se dividen donde queremos tener propietarios duales para un cliente.
gracias por los comentarios.
Datos de ventas
Cliente | Código de ventas | Ventas $ |
Honda | 1 | 500 |
Ford | 2 | 600 |
Chevy | 3 | 700 |
Nissan | 4 | 100 |
Toyota | 5 | 200 |
Gmc | 6 | 300 |
Chevy | 3 | 600 |
Nissan | 4 | 700 |
Toyota | 5 | 100 |
Chevy | 3 | 300 |
Nissan | 4 | 500 |
Toyota | 5 | 200 |
Gmc | 6 | 250 |
Honda | 1 | 100 |
Honda | 1 | 50 |
Honda | 2 | 350 |
Honda | 1 | 400 |
Ford | 5 | 500 |
Ford | 2 | 250 |
Ford | 2 | 300 |
Dimensión del cliente
Nombre del cliente | Representante de Ventas |
Honda | Sam |
Ford | Bob |
Chevy | Gina |
Nissan | Debbie |
Toyota | Tyler |
Gmc | Dave |
Salida:
Cliente | Código de ventas | Ventas $ | Nombre del representante (de la dimensión del cliente) |
Honda | 1 | 500 | Sam |
Ford | 2 | 600 | Bob |
Chevy | 3 | 700 | Gina |
Nissan | 4 | 100 | Debbie |
Toyota | 5 | 200 | Tyler |
Gmc | 6 | 300 | Dave |
Chevy | 3 | 600 | Gina |
Nissan | 4 | 700 | Debbie |
Toyota | 5 | 100 | Tyler |
Chevy | 3 | 300 | Gina |
Nissan | 4 | 500 | Debbie |
Toyota | 5 | 200 | Tyler |
Gmc | 6 | 250 | Dave |
Honda | 1 | 100 | Sam |
Honda | 1 | 50 | Sam |
Honda | 2 | 350 | Sam |
Honda | 1 | 400 | Sam |
Ford | 5 | 500 | Bob |
Ford | 2 | 250 | Bob |
Ford | 2 | 300 | Bob |
Salida correcta:
Cliente | Código de ventas | Ventas $ | Nombre del representante fuera del código de venta |
Honda | 1 | 500 | Sam |
Ford | 2 | 600 | Bob |
Chevy | 3 | 700 | Gina |
Nissan | 4 | 100 | Debbie |
Toyota | 5 | 200 | Tyler |
Gmc | 6 | 300 | Dave |
Chevy | 3 | 600 | Gina |
Nissan | 4 | 700 | Debbie |
Toyota | 5 | 100 | Tyler |
Chevy | 3 | 300 | Gina |
Nissan | 4 | 500 | Debbie |
Toyota | 5 | 200 | Tyler |
Gmc | 6 | 250 | Dave |
Honda | 1 | 100 | Sam |
Honda | 1 | 50 | Sam |
Honda | 2 | 350 | Bob |
Honda | 1 | 400 | Sam |
Ford | 5 | 500 | Tyler |
Ford | 2 | 250 | Bob |
Ford | 2 | 300 | Bob |
@bearpoz79 en algún lugar tienes que almacenar la definición de código de ventas, no veo otra manera.
@bearpoz79 algún lugar tienes que almacenar la definición de código de ventas, no veo otra manera.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hola @bearpoz79 ,
¿Cómo se dividen las cuentas? Para el escenario actual, debe volver a dividirlos si es difícil crear una tabla con código y representante de ventas.
Hay algunos blogs sobre la división de columnas. Podrías intentarlo primero.
Cómo dividir columnas en Power BI
Dividir columna por posiciones
@bearpoz79 algún lugar tienes que almacenar la definición de código de ventas, no veo otra manera.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |