cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ramendra
Helper III
Helper III

Ticket ageing trend

Hi Team,

 

Could you please help me.
I want to create historic ageing trend for last few days or weeks or Months like below.
The age should be as per date when the raw data extracted and not as per today where we use formula as [ Today()]

 

Ramendra_0-1619077453508.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Ramendra 

If you have columns like [Ticket opening date] and [Extracting date] in your table, you can use DATEDIFF function to calculate the duration days between two dates: Date Difference = DATEDIFF([Ticket opening date], [Extracting date], DAY)

Then group them by age volume with IF or SWITCH function: 

Age volume =
SWITCH (
TRUE (),
[Date Difference] > 30, "Greater than 30 Days",
30 >= [Date Difference] && [Date Difference] >= 10, "10 - 30 Days",
"Smaller than 10 Days"
)

If this doesn't help, it would be better if you can provide some dummy data to show the raw table and the expected result you want to get. This would help us understand your requirement better. 

 

Hope this helps.
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Ramendra 

If you have columns like [Ticket opening date] and [Extracting date] in your table, you can use DATEDIFF function to calculate the duration days between two dates: Date Difference = DATEDIFF([Ticket opening date], [Extracting date], DAY)

Then group them by age volume with IF or SWITCH function: 

Age volume =
SWITCH (
TRUE (),
[Date Difference] > 30, "Greater than 30 Days",
30 >= [Date Difference] && [Date Difference] >= 10, "10 - 30 Days",
"Smaller than 10 Days"
)

If this doesn't help, it would be better if you can provide some dummy data to show the raw table and the expected result you want to get. This would help us understand your requirement better. 

 

Hope this helps.
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors