Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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, @Anonymous
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, @Anonymous
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 @Anonymous
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |