Help With Adding More Conditions in Current IF Formula
Hi everyone,
I am currently struggling to add more conditions to my current formula. The formula is:
=IF('Department 1'[Approval Response]="Pending" && 'Department 1'[Past Due/Scheduled]="Past Due",1,0)
I want to add two more conditions to the approval response: "In Process" and "On Hold", while keeping the second half of the formula. Basically, if the approval response is either pending, in process, or on hold, and if it is past due, then it would be marked as 1. If not, then 0.
Any and all help is greatly appreciated!
Answers
-
Are you currently getting any errors with your current formula?
-
Not with the above formula, but I have been getting errors trying these out:
=IF('Department 1'[Approval Response]="Pending"," In Process", "On Hold" && 'Department 1'[Past Due/Scheduled]="Past Due",1,0)
=IF('Department 1'[Approval Response]="Pending"="In Process"="On Hold" && 'Department 1'[Past Due/Scheduled]="Past Due",1,0)
=IF('Department 1'[Approval Response]="Pending", IF('Department 1'[Approval Response="In Process", IF('Department 1'[Approval Response]="On Hold" && 'Department 1'[Past Due/Scheduled]="Past Due",1,0)))
-
What program are you working in? A formula like the one in your original post should be throwing errors in Smartsheet.
-
Oh, I apologize. Admittedly, I am using Power BI, not Smartsheet, but I figured it was still applicable considering the information in my table is connected to my Smartsheet.
-
The formula syntax is very different between Smartsheet and Power Bi. I've never used Power Bi, so unfortunately I am unable to help.
@Andrée Starå Do you have any experience with formulas in Power Bi?
-
Hi An & Paul,
Unfortunately, I haven't had much experience with formulas in Power BI.
Be safe and have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Well bummer. Hmm...
@Genevieve P Do you or anyone you are able to tag have any experience with this? I don't even know where to point for Power BI specific help.
-
Hi @An Nguyen
Microsoft has a website dedicated to Power Bi documentation - I would suggest that this might be a better place to search: https://docs.microsoft.com/en-us/power-bi/ .
This page has an example of an If statement in Power Bi: https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-create-calculated-columns
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thanks @Genevieve P! I was going to end up looking it up on Google at some point today to see if I could find a resource. Haha.
-
@Paul Newcome That may or may not have been exactly what I did... 😬
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Haha. No shame in using your resources, and Google counts as a resource.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!