Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I am currently getting this error message:
Text version: The syntax for ')' is incorrect. (DAX(VAR OverallStartDate = [OverallStartDate]VAR StartDate = CALCULATE( MIN(Project[Starting_Date]), REMOVEFILTERS(dimDate) )VAR Result = INT(StartDate - OverallStartDate)RETURN)).
For this Measure:
I'm using this measure for the creation of a Gaant Chart Project Scheduler.
Any help would be greatly appreciated.
Thanks!
Solved! Go to Solution.
@kelly008 try it
VAR OverallStartDate = [OverallStartDate]
VAR StartDate =
CALCULATE(
MIN(Project[Starting_Date]),
REMOVEFILTERS(dimDate)
)
VAR Result = INT(StartDate - OverallStartDate)
RETURN
Result
@kelly008 try it
VAR OverallStartDate = [OverallStartDate]
VAR StartDate =
CALCULATE(
MIN(Project[Starting_Date]),
REMOVEFILTERS(dimDate)
)
VAR Result = INT(StartDate - OverallStartDate)
RETURN
Result
Amazing thank you!!
Some highlights:
1. Do not name your variables exactly as your measures.
2. The RETURN must return something. Can't be hanging all by itself.
3. Please always format your DAX correctly.
If you don't want to format by hand, use www.daxformatter.com. This free tool will also highlight any syntax errors to you.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 7 | |
| 6 |