Forum Discussion
webportal
Impactful Individual
4 years agoWhy does COUNTROWS return EMPTY when it should return 0?
Why does this calculated column return an empty value, for rows that are equal to zero?
Number of Rows =
VAR ThisIndex = 'Table'[Index]
RETURN
COUNTROWS(
FILTER('OtherTable', 'OtherTable'[col] = ThisIndex)
)
webportal , for no rows it will return blank, you can add +0 if needed
Number of Rows = VAR ThisIndex = 'Table'[Index] RETURN COUNTROWS( FILTER('OtherTable', 'OtherTable'[col] = ThisIndex) ) +0
1 Reply
- amitchandak
Super User
webportal , for no rows it will return blank, you can add +0 if needed
Number of Rows = VAR ThisIndex = 'Table'[Index] RETURN COUNTROWS( FILTER('OtherTable', 'OtherTable'[col] = ThisIndex) ) +0