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.
Hi all, I am trying to develop a DAX measure to show open tickets per day.
I would think to use the resolved column that has dates on when the ticket was resolved.
I have a date calendar table set up with a relation with created and resolved date connected.
In my head I see the count of tickets that are open without a resolved date (blank in the cell) on a specific day.
Please let me know if I can provide more details to clarify my ask. Thank you!
Solved! Go to Solution.
Open Tickets =
var maxDate = MAX('Date'[Date])
return CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Date'),
'Table'[created date] <= maxDate &&
( 'Table'[resolved date] > maxDate || ISBLANK('Table'[resolved date])
)
@johnt75 - I was trying to use your solution but I am getting an error message. Do you know what I may need to change to get the formula to work? I am not very knowledgable about DAX.
Try changing it to
Open Tickets =
var maxDate = MAX('Date'[Date])
return CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Date'),
'Table'[created date] <= maxDate ,
( 'Table'[resolved date] > maxDate || ISBLANK('Table'[resolved date])
)
This splits the date clauses into separate conditions.
@johnt75 THANK YOU!!!!! That worked. I really appreciate you taking the time to help.
Open Tickets =
var maxDate = MAX('Date'[Date])
return CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Date'),
'Table'[created date] <= maxDate &&
( 'Table'[resolved date] > maxDate || ISBLANK('Table'[resolved date])
)
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |