Forum Discussion

villa1980's avatar
villa1980
Icon for Resolver II rankResolver II
1 year ago
Solved

If statement and count in DAX

Hi,  I have a table with a lot of Descriptions and for the current month I would like to count these descriptions if another column (status) states "Busy". However, when I use an if statement with a...
  • vojtechsima's avatar
    1 year ago

    Hello, villa1980 
    the most straightforward thing that comes to my mind is this:

    CALCULATE(
    DISTINCTCOUNT('Table'[Description]),
    'Table'[Status] = "Busy"
    )