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

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors