Forum Discussion

Sbudd's avatar
Sbudd
Helper II
5 years ago
Solved

Issue with a count

Hi   I have this DAX code: Count of id 8 = CALCULATE(       COUNT(Table[id]),           FILTER(Table,Table[code] ="8") ) It was working fine but now it just produces blanks no idea what ha...
  • selimovd's avatar
    5 years ago

    Hey Sbudd ,

     

    can you show the content of the table 'Table'?

    In general I would not use filter and I would also use countrows:

    Count of id 8 =
    CALCULATE(
        COUNTROWS(Table),
        Table[code] = "8"
    )

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution โœ”๏ธ and give it a thumbs up ๐Ÿ‘
     
    Best regards
    Denis