Forum Discussion
Khushboo9966
Helper II
2 years agoDAX 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',
('App'[Application_Status] = "Approved" ||
'App'[Application_Status] = "Cancelled" ||
'App'[Application_Status] = "Withdrawn") &&
'App[Received_Year] = '2024'
)
)
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
1 Reply
- Ritaf1983
Super User
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