Forum Discussion

Khushboo9966's avatar
Khushboo9966
Helper II
2 years ago
Solved

DAX comparison operations do not support comparing values of type integer to values to type text

Hi,   I created a calculated formula.    _Total App = CALCULATE(COUNT('App'[Application_Status]), FILTER('App',                                                                                 ...
  • Ritaf1983's avatar
    2 years ago

    Hi Khushboo9966 
    It seems that the data type of App[Received_Year]  is a decimal number and not a text, try to modify the formula to 

    _Total App = CALCULATE(COUNT('App'[Application_Status]), FILTER('App',
                                                                                                                ('App'[Application_Status] = "Approved" ||
                                                                                                                'App'[Application_Status] = "Cancelled" ||
                                                                                                                'App'[Application_Status] = "Withdrawn") &&
                                                                                                               'App[Received_Year] = 2024
                                                                                                )
                                            )
     If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly