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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
rimbi
Helper I
Helper I

Al agrupar Vendedores con diferentes cuentas me mezcla clientes con diferentes cuentas

Hola, tengo diferentes vendedores con diferentes cuentas y clientes con diferentes cuentas.

Hay vendedores que gestionan diferentes cuentas del mismo cliente, pero al agrupar el vendedor para tener 1 nombre agrupado me une las cuentas de cliente con el mismo nombre pero sin que las gestione él, pongo un ejemplo:

 IdVendedorIdClienteVentas
 Vendedor1Cliente15
 Vendedor1.1Cliente210
 Vendedor1.2Cliente1.24
 Vendedor2Cliente1.33
 Vendedor2.1Cliente38
 Vendedor3Cliente42
    
ObjetivoVendedorAgrupadoClienteTotalVentas
 Vendedor1Cliente1+Cliente2+Cliente1.219
 Vendedor2Cliente1.3+Cliente311
 Vendedor3Cliente42
    
ErrorVendedorAgrupadoClienteTotalVentas
 Vendedor1Cliente1+Cliente2+Cliente1.2+Cliente1.322
 Vendedor2Cliente1.3+Cliente3+Cliente1+Cliente1.220
 Vendedor3Cliente42

 

No se el motivo porque me las junta...

Me podéis ayudar?

 

Muchas gracias!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rimbi,

 

Please see the attached pbix file.

 

Reagards,

Vinay Pabbu

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @rimbi,

 

As we haven’t heard back from you, we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Irwan
Super User
Super User

hello @rimbi 

 

please check if this accomodate your need.

 

in Power Query, add custom column to extract Vendedor value

Irwan_0-1748391646153.png

 

if you want to show in new table, then create a new table with following DAX

Objectivo =
SUMMARIZE(
    'Table',
    'Table'[First Characters],
    "AgrupadoCliente",
    SUMX(
        FILTER(
            'Table',
            'Table'[First Characters]=EARLIER('Table'[First Characters])
        ),
        'Table'[Ventas]
    )
)
 
otherwise, you can show in table visual with sum of Ventas value
Irwan_1-1748391719663.png

 

Hope this will help.

Thank you.

Hola, no me funciona, me da un error de -tiene muchos valores sin especificar-.

Los nombres de los vendedores no son iguales ni tienen los mismos caracteres, necesitaria hacer una agrupación y sumar esa agrupación...

 

Gracias

hello @rimbi 

 

seems your original data have more variety.

please share your sample data represent your original data.

 

Thank you.

@Irwan Disculpa, te pongo datos originales:

 

IdVendedorVendedorVendedorAGR  
180JMCMORENO, JACOBOJACOBO MORENO *AGR = Agrupado
210AGGGARCIA, ANDREAANDREA GARCIA  
250MVCVICAYA, MARCOSMARCOS VIZCAYA  
ANDGARCIANDREA GARCIA 2ANDREA GARCIA  
ANDREAANDREA GARCIA ANDREA GARCIA  
JACOBO2JACOBO MORENO 2JACOBO MORENO  
JACOBO3JACOBO MORENO 3JACOBO MORENO  
JACOBO4JACOBO MORENO 4JACOBO MORENO  
JACOBO5JACOBO MORENO 5JACOBO MORENO  
JACOBOMOJACOBO MORENOJACOBO MORENO  
     
IdClienteClienteVentasIdVendedorVendedor
1000 SPORT TEAM5180JMCMORENO, JACOBO
1520SPORT TEAM - BARCELONA10JACOBO2JACOBO MORENO 2
1521SPORT TEAM - CAMISETA20ANDGARCIANDREA GARCIA 2
2011CAR STOCK5250MVCVICAYA, MARCOS
2330MOVIL CARD10JACOBO5JACOBO MORENO 5
2960CAR STOCK - ALFOMBRA15ANDREAANDREA GARCIA 2
     
ObjetivoClienteAGRVentas  
JACOBO MORENOSPORT TEAM 15  
ANDREA GARCIASPORT TEAM 20  
MARCOS VIZCAYACAR STOCK5  
JACOBO MORENOMOVIL CARD10  
ANDREA GARCIACAR STOCK15  
     
 ClienteAGRTotalVentas  
 SPORT TEAM35  
 CAR STOCK20  
 MOVIL CARD10  

 

Espero que ahora se entienda mejor.

Te agradezco la ayuda.

Saludos

Anonymous
Not applicable

Hi @rimbi,

 

Please see the attached pbix file.

 

Reagards,

Vinay Pabbu

Hola, esta si és la solución.

Muchas gracias!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.