Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 37 | |
| 32 | |
| 21 |