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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
HibaTalat
Regular Visitor

Urgent!! i need help in calculating the age of jira ticket in each status stage

Hey all,
I have created a date and from that, I can calculate the age of the ticket. The idea is to see which stage is problematic and I am want to calculate in form of #days

Following is the view I want for my dashboard:

 

Status 1status2 Status 3Status 4
Fast Fast Fast Fast 
SlowSlowSlowSlow
AverageAverageAverageAverage

Fast – the least amount of time ticket
stayed in this status

Slow- the max amount of time a ticket
stayed in this status

Average – the average amount of time a
ticket stayed in this status

Please note that I am new to PBI and I am using Desktop Report Server

1 ACCEPTED SOLUTION

Steps i followed 

1. In the "Fields" pane on the right side of the screen, click on the "New Column" button. created a column of date difference = datediff(table[created], today(), day)

2. Then put this on rows I placed status 

3. Values I dragged date difference and use functions to calculate avg, max and min

Please verify if it will work fine. i don't know if the procedure I followed Is correct

View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @HibaTalat ,

 

You could start by creating a column where you get the age of the ticket using datediff function.

 

check this link for reference https://learn.microsoft.com/en-us/dax/datediff-function-dax

 

Then you create an if and else column based on the age column, where you state that if age less tha X then slow else if its greater than y then fast else average.

Refer for this link for the if & else function https://learn.microsoft.com/en-us/dax/if-function-dax

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Steps i followed 

1. In the "Fields" pane on the right side of the screen, click on the "New Column" button. created a column of date difference = datediff(table[created], today(), day)

2. Then put this on rows I placed status 

3. Values I dragged date difference and use functions to calculate avg, max and min

Please verify if it will work fine. i don't know if the procedure I followed Is correct

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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