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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
randyrettig
Helper I
Helper I

If, Then formula

Hi all,

 

I need help with a formula/new column.  Basically, if orderprocess[groupno] = 9, and orderprocess[vendorID] has a value, and orderprocess[partnumber] is not 0, return YES, else No.

 

What I'm trying to do is create a new column that just says Yes or No according the above rules.

 

I need some inspiration, I'm stuck!

 

Thanks!

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @randyrettig ,

 

use the following calculated column

new column = IF(orderprocess[groupno] = 9 && orderprocess[vendorID] <> BLANK() && orderprocess[partnumber] <>0 , "Yes","No")

 

Idrissshatila_0-1706638534452.png

 

The pbix file that I used to create the formula for your reference.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @randyrettig ,

 

use the following calculated column

new column = IF(orderprocess[groupno] = 9 && orderprocess[vendorID] <> BLANK() && orderprocess[partnumber] <>0 , "Yes","No")

 

Idrissshatila_0-1706638534452.png

 

The pbix file that I used to create the formula for your reference.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Awesome, thank you!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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