cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jason2500
Helper I
Helper I

If condition in Power Query?

Hi 

 

I have a column called workdays as below

Jason2500_1-1609903890277.png

 

 

 

I want to create a new column based on the workdays by using the below if condition,

 

Jason2500_0-1609903861081.png

However, I am getting an error. Can you please advise what is the issue? 

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Jason2500 , Put a else at end and check

 

 else " unknow"

 

Also there is not need ot two condition.

The second condition can be [Working day] < 60

Because you will not reach here if it is <= 30



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@Jason2500 , Put a else at end and check

 

 else " unknow"

 

Also there is not need ot two condition.

The second condition can be [Working day] < 60

Because you will not reach here if it is <= 30



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Ashish_Mathur
Super User III
Super User III

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors