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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ramendra
Helper IV
Helper IV

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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