Forum Discussion
DAX comparison operations do not support comparing values of type True/False with values of type Int
Hello!
I do not understand why I am getting this error
DAX comparison operations do not support comparing values of type True/False with values of type Int
concentration = SWITCH([HHI-4],[HHI-4] < 1000, "Low concentration", 1000 <=[HHI-4] < 1800, "Medium concentration", 1800 <=[HHI-4] <= 10000, "High concentration")
while my HHI-4 is the whole number. What is wrong?
Anonymous
concentration = SWITCH( TRUE(), [HHI-4] < 1000, "Low concentration", [HHI-4] < 1800, "Medium concentration", [HHI-4] <= 10000, "High concentration" )✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
1 Reply
- parry2k
Super User
Anonymous
concentration = SWITCH( TRUE(), [HHI-4] < 1000, "Low concentration", [HHI-4] < 1800, "Medium concentration", [HHI-4] <= 10000, "High concentration" )✨ Follow us on LinkedIn
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡