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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors