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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
StefanK
New Member

Data Labels in Table

This is my Table in Power BI Desktop and the according Data Sheet:

 

bi_table.PNGdata_sheet.PNG

 

How can I show the Name-Code of the Employee in the Power BI Table, next to the Quick Measure with his Sales?

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@StefanK

 

Hi, Please try with this measure:

 

EmployeeCode =
VAR SALEMAX = [Sale max per Employee]
VAR TABLEEMPLOYEE =
    SUMMARIZE (
        Table1;
        Table1[Employee];
        "SALES"; CALCULATE ( SUM ( Table1[Sale] ) )
    )
RETURN
    CALCULATE (
        VALUES ( Table1[Employee] );
        FILTER ( TABLEEMPLOYEE; [SALES] = SALEMAX )
    )

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

5 REPLIES 5
Vvelarde
Community Champion
Community Champion

@StefanK

 

Hi, Please try with this measure:

 

EmployeeCode =
VAR SALEMAX = [Sale max per Employee]
VAR TABLEEMPLOYEE =
    SUMMARIZE (
        Table1;
        Table1[Employee];
        "SALES"; CALCULATE ( SUM ( Table1[Sale] ) )
    )
RETURN
    CALCULATE (
        VALUES ( Table1[Employee] );
        FILTER ( TABLEEMPLOYEE; [SALES] = SALEMAX )
    )

Regards

 

Victor

Lima - Peru




Lima - Peru

I don't understand exactly, how your solution works, but it does work perfectly, thx for that!

Vvelarde
Community Champion
Community Champion

@StefanK

 

Hi, The measure work in this way:

 

First i declare two variables :

 

1. With the MaxSale (Your measure)

2 A variable to store a "temporal table" with the summarize of employees and his sales.

 

After that create a 1 column table (in this case with Values) of the employee where the sales are equal to MaxSale

 

The issue is when 2 employees had the MaxSale. In this case you should evaluate what desire to show. Only One Employee or Both.

 

Regards

 

Victor

Lima - Peru

 

 




Lima - Peru

@VvelardeThank you for the explanation.

 

Unfortunately I just figured out, that this solution doesn't work, when I use the date-slicer. Do you have an idea?

StefanK
New Member

anybody?

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.