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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
zpaul_010
Helper I
Helper I

How to create a chart that shows the average tickets per month?

Apologies, Im kinda new to PowerBi. 

I have a 2 tables, 1 has all the ticket details like ticket #s, Teams, created date, etc while the 2nd table has months and work days. Have yet to touch the programming part of powerbi yet. 

 

I need to show a line chart showing the monthly average of daily tickets we're passing to the telephony team from Jan - Jun this year.

 

So instead of showing lets say, 562 tickets in a month, I'd like to show 563 tickets in June (table1) divide by 22 working days (table 2)  25.54 tickets per day are sent to the telephony team 

1 ACCEPTED SOLUTION

@zpaul_010 

 

For columns from other tables, you could use Related() function to call column from another table. 

AverageDay = DISTINCTCOUNT(Sheet1[Ticket ID]) 
/ Related('sheet2'[WorkDaysInAMonth])

 

Paul Zheng _ Community Support Team
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

6 REPLIES 6
V-pazhen-msft
Community Support
Community Support

@zpaul_010 

1. Create a calculate column to find the working days

Weekdays = If(weekday([date],2)>6, 1)

 

2. Then you just use the sum of the ticket by month divided by the sum of the weekdays in the month. 

 

Average = Calculate(sum([tickets),Allexcept(Table, [Date].[Month]) / Calculate(sum([workingdays),Allexcept(Table, [Date].[Month])

 


Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@ 

Thanks for the response. Im a bit struggling... 

I tried to make it simple so I tried to write a simple measure:

 

AverageDay = DISTINCTCOUNT(Sheet1[Ticket ID])

/ 'sheet2'[WorkDaysInAMonth]

 

Unfortunately, the 'sheet2'[WorkDaysInAMonth] which is in another table is not showing at all after the "/"

 

 

@zpaul_010 

 

For columns from other tables, you could use Related() function to call column from another table. 

AverageDay = DISTINCTCOUNT(Sheet1[Ticket ID]) 
/ Related('sheet2'[WorkDaysInAMonth])

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@zpaul_010 - This is going to depend very much on your data model. Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.

 

All that said, this might help: https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@zpaul_010 , create a date table with working days and sum up those and divide it by sales

 

workday = if( WEEKDAY([Date],2)<6,1,0)

example

sum(sales[sales])/sum(date[workday ])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for the response. Im a bit struggling... 

I tried to make it simple so I tried to write a simple measure:

 

AverageDay = DISTINCTCOUNT(Sheet1[Ticket ID])

/ 'sheet2'[WorkDaysInAMonth]

 

Unfortunately, the 'sheet2'[WorkDaysInAMonth] which is in another table is not showing at all after the "/"

 

 

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors