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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
inascargio
Frequent Visitor

Report specific pivot filter within power pivot measure

Hi all,

I need to report within a power pivot measure the pivot filter referring to a MAX measure.

See below example: I need to have the manager code (pivot field) generating the max sales (measure), reported in the measure called "winning manager code".

Any help on this is appreciated.

Thank you

inascargio

 

unnamed.png

1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @inascargio as shown on my picture, maybe you did see it, to see best manager code for each area in your pivot table insert area column and you should get my picture. try and check results





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

3 REPLIES 3
some_bih
Super User
Super User

Hi @inascargio as shown on my picture, maybe you did see it, to see best manager code for each area in your pivot table insert area column and you should get my picture. try and check results





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






some_bih
Super User
Super User

Hi @inascargio  Best Manager measure could be 

Best Manager= TOPN(1;
ALL(Table1[manager code]);
[M_sales])

 

Adjust Table1 to your table name. Measure M_sales = sum(Table1[Sales]) (simple sum)

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

 

 

some_bih_0-1687765699304.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Hi,

I tried the proposed solution but I get the same best manager code across all the areas i.e. manager code 555 who is the one with the highest overall sales.

How can I get the best manager code for each area?

Thank you again

inascargio

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors