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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Long if statement in Power Query is not showing a syntax error but the result is 100% errors - not sure why

 

 

 

 

if [Legal Type 2]="Corp" and [Valid TIN]="Valid" and [Guarantor Subtype]="Unlimited" then "Priority 1"

else if [Legal Type 2]="Corp" and [Valid TIN]="Invalid" and [Guarantor Subtype]="Unlimited" then "Priority 2"

else if [Legal Type 2]="Indiv" or [Legal Type 2]="Trust" or [Guarantor Subtype]="Unlimited" then "Priority 3"

else if[Legal Type 2]="CORP" and [Valid TIN]="Valid" and [Guarantor Subtype]="Limited" then "Priority 4"

else if[Legal Type 2]="Corp" and [Guarantor Subtype]="Limited" and [Valid TIN]="Invalid" then "Priority 5"

else if[Legal Type 2]="Indiv" and [Guarantor Subtype]="limited" and [Valid TIN]="Invalid" then "Priority 6"

else if[Legal Type 2]="TRUST" and [Guarantor Subtype]="Limited" then "Priority 6" else ""

 

 

 

 

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thanks for replying to my post. I had two issues; case sensitivity and a typo on a field name ... 

 

Regards

BA_Pete
Super User
Super User

Hi,

 

What do the error messages say?

Click on the whitespace in a cell that has the green "Error" in it and screenshot/copy the error.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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