Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Could you please help me on how to calculate time range dynamically(days & hours) for more than 4dates using dax.
Say,
1.10/07/2022 7:00PM ticket initiated
2.14/07/2022 2:30PM requested for clarification from initiator
3.15/07/2022 10:00AM responded and given clarification
4.16/07/2022 3:30PM again requested for clarification
5.17/07/2022 4:55PM responded and given clarification
6.18/07/2022 9:10AM ticket closed
Dates may be added if requested for another clarification based on the ticket.We need to calculate total hours/days took to complete the ticket...Thankyou
Solved! Go to Solution.
Hi @Lokesh4120,
Is there any other field to map the ticket id of these records?
If that is the case, you can use the current ticket id to find out the 'first date' and 'last date', then you can simply use datediff function to calculate the difference.
Regards,
Xiaoxin Sheng
Hi @Lokesh4120,
Is there any other field to map the ticket id of these records?
If that is the case, you can use the current ticket id to find out the 'first date' and 'last date', then you can simply use datediff function to calculate the difference.
Regards,
Xiaoxin Sheng
Hi @Anonymous Thank you for the reply.
Will try this and confirm you if it works.
Hi@jaideepnema,
Thanks for the reply.
I don't have a dataset for this as this is a new requirement.I got a task to think on this requirement.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.