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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Calculate ticket counts based on date and categories

I have the following table structure:


Tickets

- TicketID

- StartDate

- EndDate


Calendar

- Date


TicketDetails

- TicketID

- IsMasterTicket

- ItilCategory

- Priority


I wanted to create a graph that shows for every day the currently amount of open tickets based on itil category and priority.


I tried to do this with a calculated column in the calendar:


CALCULATE(  COUNT(Tickets[TicketID]),
            FILTER(
                Tickets, Tickets[StartDate] < 'Calendar'[Date]
                && (Tickets[EndDate] > 'Calendar'[Date] )
                )
           )




But this show me only the total amount.

Now I dont know how to go forward because:

- With this method I need to create a new column for every type of ITIL / Priority, but this is very static, I wanted to have a more dynamically way.

- I want to give the possibility to select different customers in a slicer, with my normal charts the slicer works just fine but in this calculation no matter what I select the calculation is always in total.


What would be the best practise to do this kind of calculation?


I use Import Mode and MS SQL Server as source.


Thanks in advance.

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

There is a similar case for you to refer to. For a dynamically way, you may try to create a measure instead of a column.

 

Reference:https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors