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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
efstel
Helper I
Helper I

Conditional Column with Multiple Conditions

I am adding a conditional column in power query editor and pulling numbers out of a column named Amount. When the value in the Column named GLAcct does not end with ".            " or does not contain ".CORP". And I'm creating another column similarly when the value in the Column named GLAcct ends with ".            " or contains ".CORP". (See screen shots below.)

The problem is that the first conditional column includes values in the Amount column when ".CORP" is contained within the column. 

efstel_1-1742391952343.png

 

efstel_0-1742391932209.png

 

 

1 ACCEPTED SOLUTION

The response didn't quite answer my question. I figured out a workaround.

 

View solution in original post

5 REPLIES 5
v-hashadapu
Community Support
Community Support

Hi @efstel , Happy to know your issue is resolved. Kindly share your insights here and mark them 'Accept as Solution', so others with similar queries may find them easily. Thank you.

v-hashadapu
Community Support
Community Support

Hi @efstel , Thank you for reaching out to the Microsoft Community Forum.

Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

The response didn't quite answer my question. I figured out a workaround.

 

Hi @efstel , We are pleased to hear that you have found a workaround. Kindly let us know if it successfully resolved your issue. If it did, please share the details here and mark it as 'Accept as solution' to assist others with similar problems. If it did not, please provide further details.
Thank you.

ZhangKun
Super User
Super User

You should clarify your judgment rules (modify the judgment rules or adjust the order of creating columns and determine whether the first column has taken the value of the Amount column before creating the second column), because they have overlapping parts.

The Venn diagram below shows your problem, in which the filled squares are the overlapping parts.

ZhangKun_0-1742394262983.png

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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