Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

URGENT Switch error when i use formula to create range

Hi all, 

 

I am encountering this issue (function switch does not support comparing values of type integer with value of type true/false.) Can anyone help me to fix it?

 

daydream1989_0-1679044301096.png

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

try to write like this
Screen Capture #635.png

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous,

Any update on thsi? Did the above suggestions help with your scenario? If that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Ahmedx
Super User
Super User

try to write like this
Screen Capture #635.png

ribisht17
Super User
Super User

Anonymous
Not applicable

I have refered this and change my column to text format but still getting the same error. please help

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors