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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AlenaSK
Regular Visitor

Benchmark measure to compare lead quality of one sales rep with others who receive the same leads

Hi!
I want to create a measure that will help me to compare one sales rep results with others, based on the lead quality they work with.
The background: 

  • Each sales rep receives different leads, based on 3 parameters: lead value, lead category, lead type.
  • Throughout the time, the proportion may differ.

So step 1 will determine the lead quality combo per sales rep. I did it with TOPN function for each parameter separately:
 Top1 Lead Potential per SaleRep = TOPN(1all('table1'[Lead Potential]), Calculate(Counta('table'[Lead Potential])), DESC)
It returns string value, f.e. 'Medium' in this case.


Step 2 should be to calculate AVG number of leads per sales rep who have the same TOP1 Lead Potential, TOP1 lead category and TOP1 lead type.

Any ideas how to proceed with step 2?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @AlenaSK ,

 

Please try this measure.

Avg Leads with Same Top1 Combo = 
CALCULATE(
    AVERAGEX(
        'table1',
        COUNTA('table1'[Lead])
    ),
    FILTER(
        ALL('table1'[SalesRep]),
        'table1'[Top1 Lead Potential] = MAX('table1'[Top1 Lead Potential]) &&
        'table1'[Top1 Lead Category] = MAX('table1'[Top1 Lead Category]) &&
        'table1'[Top1 Lead Type] = MAX('table1'[Top1 Lead Type])
    )
)

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

AlenaSK
Regular Visitor

Hi @Anonymous !
Thank you so much for your suggestion! I'll give it a try!

View solution in original post

2 REPLIES 2
AlenaSK
Regular Visitor

Hi @Anonymous !
Thank you so much for your suggestion! I'll give it a try!

Anonymous
Not applicable

Hi @AlenaSK ,

 

Please try this measure.

Avg Leads with Same Top1 Combo = 
CALCULATE(
    AVERAGEX(
        'table1',
        COUNTA('table1'[Lead])
    ),
    FILTER(
        ALL('table1'[SalesRep]),
        'table1'[Top1 Lead Potential] = MAX('table1'[Top1 Lead Potential]) &&
        'table1'[Top1 Lead Category] = MAX('table1'[Top1 Lead Category]) &&
        'table1'[Top1 Lead Type] = MAX('table1'[Top1 Lead Type])
    )
)

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.