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
RichOB
Post Partisan
Post Partisan

Need help creating helpdesk ticket %'s when created on behalf of someone else

Hi, I need to show the % of helpdesk tickets that are for the person creating the ticket...and the % that are on behalf of someone else. Sometimes the creator uses the "On_behalf_of" for themselves and sometimes they leave it blank, but when it's blank, it is always the same as the "Created by" entry. For example:

Created_byOn_behalf_ofCount
Dave JonesDave Jones2
Dave JonesMark Griffiths1
Dave Jones 4
Amy EvansLaura Thomas3
Amy Evans 8
Paul SimonPeter Jackson5
Paul Simon 4
Paul SimonGary Marks 3
Total 30


I want to show as 

Created_by For_ThemselfSomeone_Else
Dave Jones 85.70%14.30%
Amy Evans62.50%37.50%
Paul Simon33.33%66.66%


Thanks

1 REPLY 1
bhanu_gautam
Super User
Super User

@RichOB 

Create a new column to determine if the ticket was created on behalf of someone else or for themselves. You can use the following DAX formula to create this column:

On_Behalf_Indicator = IF(
ISBLANK('Table'[On_behalf_of]) || 'Table'[Created_by] = 'Table'[On_behalf_of],
"For_Themself",
"Someone_Else"
)

 


Create a measure to calculate the percentage of tickets created for themselves:
For_Themself_Percentage =
VAR TotalTickets = CALCULATE(COUNT('Table'[Count]), ALLEXCEPT('Table', 'Table'[Created_by]))
VAR ForThemselfTickets = CALCULATE(COUNT('Table'[Count]), 'Table'[On_Behalf_Indicator] = "For_Themself")
RETURN
DIVIDE(ForThemselfTickets, TotalTickets, 0)

 


Create another measure to calculate the percentage of tickets created on behalf of someone else:
Someone_Else_Percentage =
VAR TotalTickets = CALCULATE(COUNT('Table'[Count]), ALLEXCEPT('Table', 'Table'[Created_by]))
VAR SomeoneElseTickets = CALCULATE(COUNT('Table'[Count]), 'Table'[On_Behalf_Indicator] = "Someone_Else")
RETURN
DIVIDE(SomeoneElseTickets, TotalTickets, 0)


Create a table visual in Power BI and add the Created_by column along with the two measures For_Themself_Percentage and Someone_Else_Percentage.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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.