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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
bdsimpsn
Frequent Visitor

Calculating WTD, MTD, Days Since Opened, Resolution Time

I'm quite new to PowerBI have been tasked to create a dashboard to show service desk ticket stats, and need some assistance with formulas to calculate the following:

  • Tickets opened this week (WTD)
  • Tickets opened last week
  • Tickets opened this month (MTD)
  • Tickets opened last month
  • Tickets opened this quarter

I have got tickets opened today and yesterday working using:

Today = Calculate(
    DISTINCTCOUNT('Tickets'[Number]),
    FILTER(ALL('Tickets'), 'Tickets'[Opened] >= TODAY()))

Yesterday = Calculate(
    DISTINCTCOUNT('Tickets'[Number]),
    FILTER(ALL('Tickets'), 'Tickets'[Opened] >= TODAY()-1))

I also have 'days since opened' and 'days since updated' using the below formula, but need to count only working days. I am wanting to use the NETWORKDAYS formula but can't get my head around structuring this. 

Days Since Opened = INT(Today()-[Opened])
Days Since Updated = INT(Today()-[Updated])

And lastly, I'm needing to calculate the resolution time using the time closed and time opened. I'm assuming this will be using the DATEDIFF formula, but haven't been able to get this working either.

Would love your assistance with these please!

Fields.png

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@bdsimpsn Try:

Days Since Opened = NETWORKDAYS(Today(),[Opened])
Days Since Updated = NETWORKDAYS(Today(),[Updated])
Days Open = ([Closed] - [Opened]) * 1.


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...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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