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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Anonymous
Not applicable

@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
Anonymous
Not applicable

@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 "/"

 

 

Anonymous
Not applicable

@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
Community Champion
Community Champion

@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!:
DAX For Humans

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 ])

Share with Power BI Enthusiasts: 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.