This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi all,
I'm getting a bit confused with this IF formula:
if [Completion Date] < [#"Month/Year"] and [Status] = Requested and [Status] = In Progress and [Status] = Approved by Management then "Overdue" else ""
The system highlight the word Progress with "Token then expected"
Does that mean that the If Formula can handle only one "and" expression?
Thank you
Christian
Solved! Go to Solution.
Hi @Werfuks
if can handle whatever you throw at it.
What are Requested and In Progress ? Variables? If it's just text, which is what it looks like, you'd have to use
"Requested" and "In Progress". Same for Approved
if [Completion Date] < [#"Month/Year"] and [Status] = "Requested" and [Status] = "In Progress" and [Status] = "Approved" by Management then "Overdue" else ""
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
You have to enclose the text values in double quotes, like [Satus] = "Requested" and ...
Bur are you sure that "and" is appropriate? How is [Status] going to = "Requested" AND "In Progress" AND "Approved by Management"? The if statement evaluates to true or false per row, so the [Status] will be just one thing, not one thing AND another thing.
--Nate
Many thanks to you guys. With the double quotes it works now!
You have to enclose the text values in double quotes, like [Satus] = "Requested" and ...
Bur are you sure that "and" is appropriate? How is [Status] going to = "Requested" AND "In Progress" AND "Approved by Management"? The if statement evaluates to true or false per row, so the [Status] will be just one thing, not one thing AND another thing.
--Nate
Hi @Werfuks
if can handle whatever you throw at it.
What are Requested and In Progress ? Variables? If it's just text, which is what it looks like, you'd have to use
"Requested" and "In Progress". Same for Approved
if [Completion Date] < [#"Month/Year"] and [Status] = "Requested" and [Status] = "In Progress" and [Status] = "Approved" by Management then "Overdue" else ""
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 6 | |
| 4 | |
| 4 |