Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I'm facing an issue with counting tickets and incidents in Power BI. Here's my setup:
Tables:
Calendar Table: Created from the minimum and maximum dates from both tables.
Relationships:
Despite this setup, when I use the Calendar[Date] column, the counts for created tickets and incidents (using their respective IDs) don't work. Additionally, when I select any month in the date slicer, it returns blank.
Any insights or solutions would be greatly appreciated!
Thanks!
Solved! Go to Solution.
Hi @bayremsyoud
Welcome to the Microsoft Fabric Forum,
Regarding the Issue with Counting Tickets and Incidents Using Calendar Table
While I may not have full visibility into the specific structure of your dataset, I have created a sample .pbix file to demonstrate one possible approach to implementing the desired logic.
I’ve included relevant screenshot and attached the .pbix file for your reference. Please take a moment to review them and see if this solution aligns with your requirements.
If this doesn’t fully meet your needs, could you kindly share a sample of your data and more detailed context? That would help us provide a more accurate solution.
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.
Thank You!
Hello @bayremsyoud
I have tried the following steps to address the issue:
Create a calendar table generated from the MIN and MAX of all dates:
Calendar Table:
Calendar = CALENDAR(
MINX(UNION(SELECTCOLUMNS(Ticket, "Date", Ticket[Created Date]), SELECTCOLUMNS(Incident, "Date", Incident[Start Date])), [Date]),
MAXX(UNION(SELECTCOLUMNS(Ticket, "Date", Ticket[Closed Date]), SELECTCOLUMNS(Incident, "Date", Incident[End Date])), [Date])
)
2. Create measures for Ticket Created, Ticket Closed, Incident Start Date, and Incident End Date:
Tickets Created and Tickets Clsoed:
Tickets Created
Tickets Created =
CALCULATE(
COUNT(Ticket[TicketID])
)
Tickets Closed
Tickets Closed = CALCULATE(
COUNTROWS(Ticket),
USERELATIONSHIP(Calendar[Date], Ticket[Closed Date])
)
Incidents Started and Incidents Ended:
Incident Started
Incidents Started = COUNTROWS(Incident)
Incident Ended
Incidents Ended = CALCULATE(
COUNTROWS(Incident),
USERELATIONSHIP(Calendar[Date], Incident[End Date])
)
Please use the above measures in the table visual.
Additionally, it might be helpful to install the latest version of Power BI Desktop to ensure compatibility and access to the latest features. You can download the latest version from the official Power BI website.
Thank You!
Hi @bayremsyoud
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @bayremsyoud
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @bayremsyoud
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @bayremsyoud
Welcome to the Microsoft Fabric Forum,
Regarding the Issue with Counting Tickets and Incidents Using Calendar Table
While I may not have full visibility into the specific structure of your dataset, I have created a sample .pbix file to demonstrate one possible approach to implementing the desired logic.
I’ve included relevant screenshot and attached the .pbix file for your reference. Please take a moment to review them and see if this solution aligns with your requirements.
If this doesn’t fully meet your needs, could you kindly share a sample of your data and more detailed context? That would help us provide a more accurate solution.
If this response resolves your query, kindly mark it as Accepted Solution to help other community members. A Kudos is also appreciated if you found the response helpful.
Thank You!
Hello thanks for your detailed help and instrcuctions but the pdix won't open because of the Power BI version.
Hello @bayremsyoud
I have tried the following steps to address the issue:
Create a calendar table generated from the MIN and MAX of all dates:
Calendar Table:
Calendar = CALENDAR(
MINX(UNION(SELECTCOLUMNS(Ticket, "Date", Ticket[Created Date]), SELECTCOLUMNS(Incident, "Date", Incident[Start Date])), [Date]),
MAXX(UNION(SELECTCOLUMNS(Ticket, "Date", Ticket[Closed Date]), SELECTCOLUMNS(Incident, "Date", Incident[End Date])), [Date])
)
2. Create measures for Ticket Created, Ticket Closed, Incident Start Date, and Incident End Date:
Tickets Created and Tickets Clsoed:
Tickets Created
Tickets Created =
CALCULATE(
COUNT(Ticket[TicketID])
)
Tickets Closed
Tickets Closed = CALCULATE(
COUNTROWS(Ticket),
USERELATIONSHIP(Calendar[Date], Ticket[Closed Date])
)
Incidents Started and Incidents Ended:
Incident Started
Incidents Started = COUNTROWS(Incident)
Incident Ended
Incidents Ended = CALCULATE(
COUNTROWS(Incident),
USERELATIONSHIP(Calendar[Date], Incident[End Date])
)
Please use the above measures in the table visual.
Additionally, it might be helpful to install the latest version of Power BI Desktop to ensure compatibility and access to the latest features. You can download the latest version from the official Power BI website.
Thank You!
Split the datetimes in your ticket tables into separate date and time column. Then ensure the dates are cast as date in powerquery.
it's already splited and i only have the dates in those columns
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!