Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am working with ITSM Tool Data which contains multiple columns including TicketID, CreatedDate, ClosedDate, TicketType etc. Data includes any tickets last updated in the last 2 years from today (i.e., 3rd Jun)
CreatedCount =
Date [Date] - FSTickets [Created Date]: one to many / active
Date [Date] - FSTickets [Closed Date]: one to many / inactive
This is my first hands-on experience with Power BI - can someone please suggest what I am missing here and how can I achieve correct Closed vs Created Ticket Count based on the date range selected in the Slider?
Thank you.
Regards,
Madhav
Solved! Go to Solution.
You are trying to create a relationship with a field that has DateTime - You will have to create a Date Column, create relationship and then use the measure.
Just bring in the Date from Calendar and Closed Date from Ticket table to understand what I'm talking about.
Hope that helps!
Also attaching the Pbix here.
Thanks for the reply from @miTutorials.
@MadhavDholakia ,when selecting 01/05/2024 - 31/05/2024 in the slicer, what should be the correct result you expect?
And I noticed that in the PBIX data you provided, the Closed Date is blank. So I want to make sure with you if there is a problem with this column of data.
Best Regards,
Yulia Xu
Hi @Anonymous - Thank you for your reply.
Tickets which are not yet closed will have Closed Date as null.
There are 6438 tickets last updated in May 2024 (Last Updated Date).
Total Tickets Created in May 2024 (Created Date) are 5785.
Total Tickets Closed in May 2024 (Closed Date) are 5169.
These are the numbers I am expecting when slider is between 01-05-2024 and 31-05-2024.
Closed Count Measure:
Check out this tutorial , hope this helps!
thanks @miTutorials - this was helpful.
I have followed the steps as per tutorial video. When I am creating both the measures for CreatedCount and ClosedCount, it seems I am missing something.
Unlike Sales Value in Tutorial Example, I have a column Numeric Ticket ID - so I cannot use CALCULATE(SUM(..)..)
Measures I have created are given below and surely they are not correct as I am not getting expected results:
Can you share sample pbix to help please ?
Hi, I am not seeing an option to attach a file here - am I missing something?
Edit: because I have just joined this forum and do not have sufficient points/rights - please see this WeTransfer Link for sample pbix file.
https://we.tl/t-YujU7mVtUY
Thank you.
Hi @miTutorials - sorry but can you please suggest what I am missing here? Thank you.
You are trying to create a relationship with a field that has DateTime - You will have to create a Date Column, create relationship and then use the measure.
Just bring in the Date from Calendar and Closed Date from Ticket table to understand what I'm talking about.
Hope that helps!
Also attaching the Pbix here.
User | Count |
---|---|
73 | |
70 | |
38 | |
25 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
43 | |
42 |