Forum Discussion

Zaky's avatar
Zaky
Icon for Helper IV rankHelper IV
5 years ago
Solved

Count Specific Year Date in a column

Hi Experts,   I would like to count a specific year date in a column. I'm using IF condition or statement to do that. Let says I want to see data for 2020, 2019 and the blank data. In this case i ...
  • amitchandak's avatar
    5 years ago

    Zaky , Try measures like

     


    2020 = calculate(countrows('Data2020'), filter('Data2020', YEAR('Data2020'[Batch Return])=2020))


    2019=  calculate(countrows('Data2020'), filter('Data2020', YEAR('Data2020'[Batch Return])=2019))