I'm searching for a calculation that involves conditional logic, depicting the number of tickets opened in the last 30 days.
Solved! Go to Solution.
Hi, @blackbranded
You can try the following methods.
Measure:
Total Open Tickets days =
CALCULATE ( COUNT ( 'Ticket_1673349003140 (1)'[Status] ),
FILTER ( ALL ( 'Ticket_1673349003140 (1)' ),
[Status] = "open"
&& [Created Time] >= TODAY () - 30
&& [Created Time] <= TODAY ()
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Assuming the created time column is a Date data type (and not a Date/Time data type), try this approach
Hope this helps.
Hi, @blackbranded
You can try the following methods.
Measure:
Total Open Tickets days =
CALCULATE ( COUNT ( 'Ticket_1673349003140 (1)'[Status] ),
FILTER ( ALL ( 'Ticket_1673349003140 (1)' ),
[Status] = "open"
&& [Created Time] >= TODAY () - 30
&& [Created Time] <= TODAY ()
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can you please provide sample data?
I think there is a general problem in your logic because typically ticket systems have one line-item per ticket. But requesting on status field would ignore tickets which have been opened duting last 30 days and closed within these days because they do not have status opened. So typically you would go on the creation time to identify an opened ticket.
Total Open Tickets days =
CALCULATE(
COUNT('Ticket_1673349003140 (1)'[Status]),
'Ticket_1673349003140 (1)'[Created Time] >= NOW()-30
)
Or is it different in your case? Can you please check as well as some sample data incl. how your data model looks like? Because depending on your data mpdel looks like its possible that the emasure has to be adjsuted.
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
User | Count |
---|---|
122 | |
63 | |
56 | |
46 | |
41 |
User | Count |
---|---|
114 | |
66 | |
59 | |
59 | |
45 |