Forum Discussion
kevin_sbi
1 year agoFrequent Visitor
Issuing with Calendar Table and two date fields on the same table
Good day, I am running into an issue which I believe is being caused by the fact that I have two date fields on one table and trying to use the date field on a calendar. We have an incident ta...
- 1 year ago
The measure is overriding the filters on assignment groups. Try
Count of Resolved Incidents (Non-SD1) = CALCULATE ( COUNTROWS ( 'service_now incident' ), USERELATIONSHIP ( 'Calendar'[Date], 'service_now incident'[Resolved Short Date] ), 'service_now incident'[Resolved Short Date] >= DATE ( 2024, 1, 1 ), KEEPFILTERS ( 'service_now incident'[assignment_group] <> "ITOPS - SD - Level 1" && CONTAINSSTRING ( 'service_now incident'[assignment_group], "ITOPS" ) ) )
kevin_sbi
1 year agoFrequent Visitor
Assignment group is part of the incident table, so just the two existing relationships (resolved [inactive] and created [active]) to the date table.
Here is the visual definition:
I did the same exact visual for created, with the value being count of incidents and it works fine:
Thanks in advance for any help!
johnt75
Super User
1 year agoThe measure is overriding the filters on assignment groups. Try
Count of Resolved Incidents (Non-SD1) =
CALCULATE (
COUNTROWS ( 'service_now incident' ),
USERELATIONSHIP ( 'Calendar'[Date], 'service_now incident'[Resolved Short Date] ),
'service_now incident'[Resolved Short Date] >= DATE ( 2024, 1, 1 ),
KEEPFILTERS (
'service_now incident'[assignment_group] <> "ITOPS - SD - Level 1"
&& CONTAINSSTRING ( 'service_now incident'[assignment_group], "ITOPS" )
)
)