Forum Discussion
need help with getting my data visualized properly
- 5 years ago
thanks for your reply CJLittle
sure, try to change 'Table'[Closed Date] >= _seldate to Table'[Closed Date] > _seldate in measures
count = var _seldate=SELECTEDVALUE(calendarTable[Date]) return countrows(filter('Table', 'Table'[Opened Date]<=_seldate &&'Table'[Closed Date]>_seldate))result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
This seems like it might be closer to what I want but isn't taking into account the fact that ticket number 3 was closed on 4/15, reducing the total number of tickets open on 4/15 to 3 from 4.
thanks for your reply CJLittle
sure, try to change 'Table'[Closed Date] >= _seldate to Table'[Closed Date] > _seldate in measures
count =
var _seldate=SELECTEDVALUE(calendarTable[Date])
return countrows(filter('Table', 'Table'[Opened Date]<=_seldate &&'Table'[Closed Date]>_seldate))
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- CJLittle5 years agoFrequent Visitor
Thank you so much. This got me almost all the way there. I just had to add in an or statement around the closed date to check for null values too. The final measure looks like the following:
count = var _seldate=SELECTEDVALUE(calendarTable[Date]) return countrows(filter('Table', 'Table'[Opened Date]<=_seldate && ('Table'[Closed Date]>_seldate || 'Table'[Closed Date] = BLANK())))