Forum Discussion
dte-chris
Helper I
6 years agoCOUNTROWS + FILTER and include zero values
I am trying to use a filtered row count, but it's not displaying rows resulting in zero rows counted. Here is my measure formula: device_threats = COUNTROWS(FILTER('ThreatOccurrencesInTimeframe'...
- 6 years ago
I've given up on trying to get a measure to work and decided to just count it with an M query.
Greg_Deckler
Community Champion
6 years agoPerhaps
device_threats = VAR __Count = COUNTROWS(FILTER('ThreatOccurrencesInTimeframe', CONTAINS('DevicesOnline', [id], 'ThreatOccurrencesInTimeframe'[device_id])))
RETURN
IF(ISBLANK(__Count),0,__Count)
device_threats = VAR __Count = COUNTROWS(FILTER('ThreatOccurrencesInTimeframe', CONTAINS('DevicesOnline', [id], 'ThreatOccurrencesInTimeframe'[device_id])))
RETURN
IF(ISBLANK(__Count),0,__Count)
dte-chris
Helper I
6 years agoGreg_Deckler That didn't seem to change anything.
- Greg_Deckler6 years ago
Community Champion
Try clicking on your column in Values area and choose "Show items with no data"?- dte-chris6 years ago
Helper I
Greg_Deckler That does not appear as an option. Also, read the edit to my OP.
- dte-chris6 years ago
Helper I
I've given up on trying to get a measure to work and decided to just count it with an M query.