Forum Discussion
ljkeefe
Helper II
3 years agoError message: The syntax for ')' is incorrect.
I'm following this tutorial step-by-step and I get the syntax error: https://www.youtube.com/watch?v=cdUg8LfarCg&lc=UgxiYG9l4FEGSPPCHIZ4AaABAg.9ojUaHLyeGS9ol4f4SkqIS Here's my code: Padd...
- 3 years ago
You need to tell it what to return.
PaddingLeft = VAR OverallStartDate1 = [OverallStartDate] VAR StartDate = CALCULATE ( MIN ('Required Messaging Schedules'[Project Start Date]), REMOVEFILTERS (DateTable) ) VAR Result = INT(StartDate - OverallStartDate1) RETURN Result
jdbuchanan71
Super User
3 years agoYou need to tell it what to return.
PaddingLeft =
VAR OverallStartDate1 = [OverallStartDate]
VAR StartDate =
CALCULATE (
MIN ('Required Messaging Schedules'[Project Start Date]),
REMOVEFILTERS (DateTable)
)
VAR Result =
INT(StartDate - OverallStartDate1)
RETURN
Resultljkeefe
Helper II
3 years agoOh my god...I came across a post that said to use Return_result and that didn't work. But I just tried your suggestion and BAM! Thank you!