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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
anandprakashnm
Frequent Visitor

How to put condition for BLANK in IF

I have a senrio where i am Calculation in a diffrent manner:-

Course 1  Course 2  Course 2

Maths        Social       

Eng            Sanish    Social

Sci

 

I am trying to give code to Course 1 if they have taken maths as first course, 0 if blank and 100 if any other course

Course 1 num = If(Course1="maths",1,if(Course 1="Blank",0,100))

 

For Course 2

Course 2 Num = if(Course 2 = "Social",2,if(Course 2 = BLANK,0,100))

 

similarly for multiple courses. How we can set uprule for Blank?

 

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @anandprakashnm,

 

You can try it like this.

Course 1 num =
IF ( [Course1] = "maths", 1, IF ( ISBLANK ( [Course 1] ), 0, 100 ) )

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @anandprakashnm,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Aron_Moore
Solution Specialist
Solution Specialist

I often use a column like:

 

Open? = IF( [Closed Date] = BLANK() , "Open", BLANK() )

v-jiascu-msft
Employee
Employee

Hi @anandprakashnm,

 

You can try it like this.

Course 1 num =
IF ( [Course1] = "maths", 1, IF ( ISBLANK ( [Course 1] ), 0, 100 ) )

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors