This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Can anyone tell what I am doing wrong here, Table [Step] is a forumula I copied from somewhere else, see below
Solved! Go to Solution.
The bold part is a boolean, the Italic part seems to be an integer as it is a date, you cannot compare them. Which is also logical to me, why should you compare a date (CurrentDay like july 30 2025) with a number of days like 2 or 3 (DaysFromEndDate)?
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadWant to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi @DelphiDe
It looks like there's likely a typo in your last variable. This line:
VAR DaysFromEndDate = DaysFromStartDate = ProjectDays
is invalid syntax – it seems you meant to perform a calculation like:
VAR DaysFromEndDate = DaysFromStartDate + ProjectDays
In the comparison step
CurrentDay <= DaysFromEndDate
you’re comparing a number to a boolean, which causes the engine to throw an error — it expects a number, not a TRUE/FALSE value. Fixing the assignment should resolve the issue.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @DelphiDe ,
Just wanted to check if the responses provided were helpful. If further assistance is needed, please reach out.
Thank you.
Hi @DelphiDe ,
We wanted to kindly follow up regarding your query. If you need any further assistance, please reach out.
Thank you.
Hi @DelphiDe ,
Just checking in to see if your issue is resolved.
Could you confirm if the solutions provided by @Ritaf1983 and @FBergamaschi were helpful in resolving your issue.
If further assistance is needed, please reach out.
Thank you.
Also thanks to @Ritaf1983 and @FBergamaschi for your inputs.
Hi @DelphiDe
It looks like there's likely a typo in your last variable. This line:
VAR DaysFromEndDate = DaysFromStartDate = ProjectDays
is invalid syntax – it seems you meant to perform a calculation like:
VAR DaysFromEndDate = DaysFromStartDate + ProjectDays
In the comparison step
CurrentDay <= DaysFromEndDate
you’re comparing a number to a boolean, which causes the engine to throw an error — it expects a number, not a TRUE/FALSE value. Fixing the assignment should resolve the issue.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
The bold part is a boolean, the Italic part seems to be an integer as it is a date, you cannot compare them. Which is also logical to me, why should you compare a date (CurrentDay like july 30 2025) with a number of days like 2 or 3 (DaysFromEndDate)?
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadWant to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Check out the April 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 |
|---|---|
| 36 | |
| 33 | |
| 31 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 50 | |
| 33 | |
| 24 | |
| 24 |