cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Group By Sales rep and Max Count(Area)

Hi Everyone,

 

I need your help regarding the following problem:

I have a table with sales, sales reps and area.

Now I want to group my Sales reps into a new table with the Area with the highest count also included. 

Below what I want to achieve:

 

Simon_BI_0-1613411116829.png

As you can see Sales rep A has done most of his sales in EU so his Main Area is EU.

 

Thanks for the help!

 

1 ACCEPTED SOLUTION
jameszhang0805
Resolver IV
Resolver IV

Hope it's the result you want

jameszhang0805_0-1613465649221.png

 

View solution in original post

3 REPLIES 3
jameszhang0805
Resolver IV
Resolver IV

Hope it's the result you want

jameszhang0805_0-1613465649221.png

 

Anonymous
Not applicable

What happens if there is a rep that has at least 2 different areas with the same counts? Which area do you want to return?

Anonymous
Not applicable

Thanks for your reply!

This is not going to happen (or at least it shouldn't) because they sell in 1 main area and only in rare occasions they can have a sale in another area.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors