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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Switch Formula error using dis connect tables

Hi Experts

Getting a switch formula error Consider using Value or Format cannot campair string and integer types...

 

ProductComplaints = SWITCH(
       "Downward" ,IF(SELECTEDVALUE(_TrendDirection[Direction]) = "Downward Trending", [Downward]),
       "Upward" ,IF(SELECTEDVALUE(_TrendDirection[Direction]) = "Upward Trending", [Upward]),
       "NoChange", IF(SELECTEDVALUE(_TrendDirection[Direction]) = "No Trend", [NoChange]),
       "NoTrend", IF(SELECTEDVALUE(_TrendTable[Trends]) = "No Trend", [NoTrend]),
       "SignTrend", IF(SELECTEDVALUE(_TrendTable[Trends]) = "Significant Trend", [SignificantTrend]), 
    [PMSComplaintsMN])

cannot see where i have gone wrong. i have two disconnect table and i am tryng to create one overall Switch formula..

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

 

You're missing the very first argument on the SWITCH, the expression to be evaluated

View solution in original post

3 REPLIES 3
AlB
Community Champion
Community Champion

 

You're missing the very first argument on the SWITCH, the expression to be evaluated

Anonymous
Not applicable

HI AIB,

 

firstly apologies in reaching out to you directly, i was given your details as someone who is a DAX GURU and might be able to shed some light on a questioin that no can seem to answer... 

https://community.powerbi.com/t5/Desktop/Relationship-issue-with-Measure/m-p/788266#M379643

 

I have a relationship issue with a measure and i cannot filter the bar graph on the link within the question and cannot see the wood for the tree on how to resolve this issue.

Anonymous
Not applicable

thanks AIB, i am half a sleep. much appreicated.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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