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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
banksbc
New Member

Percent of Teams Total

New to Power BI and this forum.

Not sure if this was supposed to ask this question in this group or the visuals group.

 

I have multiple employees in a employee table that shows what team they belong to.  I want to have a card on an employee dashboard that shows the percentage of tickets they have completed  based off the total tickets that team has completed.  The percentage will show on the card based off who is selected in the slicer.

 

Slicer will have each employees name from all teams

 

The [Employee Table] has more than just these two columns but is simplified for this post

banksbc_0-1714256921566.png

 

The [Ticket Table] has the tickets assigned to each of the employees:

banksbc_1-1714256921567.png

 

Desired result will be a card that shows the percentage of employee's tickets against their respective team's tickets based on whoever is selected in the slicer

Example:

If Bob is selected, the card will show 40%

If Larry is selected, the card will show 60%

etc.

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1714281922401.png

 

Jihwan_Kim_1-1714282316073.png

 

 

% ticket complete: =
VAR _ticketbyname =
    COUNTROWS ( VALUES ( ticket[ticket#] ) )
VAR _ticketbyteam =
    CALCULATE (
        COUNTROWS ( VALUES ( ticket[ticket#] ) ),
        ALL ( employee[name] ),
        VALUES ( employee[team] )
    )
RETURN
    IF (
        HASONEVALUE ( employee[name] ),
        DIVIDE ( _ticketbyname, _ticketbyteam ),
        "select name"
    )

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1714281922401.png

 

Jihwan_Kim_1-1714282316073.png

 

 

% ticket complete: =
VAR _ticketbyname =
    COUNTROWS ( VALUES ( ticket[ticket#] ) )
VAR _ticketbyteam =
    CALCULATE (
        COUNTROWS ( VALUES ( ticket[ticket#] ) ),
        ALL ( employee[name] ),
        VALUES ( employee[team] )
    )
RETURN
    IF (
        HASONEVALUE ( employee[name] ),
        DIVIDE ( _ticketbyname, _ticketbyteam ),
        "select name"
    )

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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