Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Need help on convert Sql query to DaX

Hello All, I have a sample data of sales which has applications, their categories and sales. I need to calculate the distinct count of applications which has sales as zero or blank. I have...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    According to your statement, I think your issue should be caused by that OR() function will return True or False result, you need to add it in FILTER() function.

    _Modified Count of Actual date <0 =
    CALCULATE (
        DISTINCTCOUNT ( 'Monitoring Report Check Data'[Application] ),
        FILTER (
            'Monitoring Report Check Data',
            OR ( ISBLANK ( [_SUM of actual date] ), [_SUM of actual date] = 0 )
        )
    )

     

    Best Regards,
    Rico Zhou

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.