Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AzimiJ
Regular Visitor

The syntax for 'Level' is incorrect.

Hello all,

Please help me know the issue and fix it. Thank you all!

ProjectedTF =
VAR Alpha = 0.6
VAR Beta = 0.4
VAR Last4Actual = CALCULATE([Last4ActualWednesdays], ALL('DateTable'))
VAR LastYearAvg = CALCULATE([LastYearSameWeekday], ALL('DateTable'))
VAR Level = Alpha * Last4Actual + (1 - Alpha) * LastYearAvg
VAR Trend = Beta * (Last4Actual - LastYearAvg)
RETURN
    Level + Trend

---
The syntax for 'Level' is incorrect. (DAX(VAR Alpha = 0.6VAR Beta = 0.4VAR Last4Actual = CALCULATE([Last4ActualWednesdays], ALL('DateTable'))VAR LastYearAvg = CALCULATE([LastYearSameWeekday], ALL('DateTable'))VAR Level = Alpha * Last4Actual + (1 - Alpha) * LastYearAvgVAR Trend = Beta * (Last4Actual - LastYearAvg)RETURN Level + Trend)).

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

AzimiJ
Regular Visitor

Thank you Ibendlin,
I have changed Level and Trend to TheLevel and TheTrend, issue resolved.

Best!

View solution in original post

5 REPLIES 5
v-pnaroju-msft
Community Support
Community Support

Hi @AzimiJ,

We are pleased to learn that your issue has been resolved. Kindly mark the response that resolved your query as the accepted solution, as this will help other community members facing similar challenges to find solutions more effectively. Please feel free to continue using the Fabric Community for any further assistance with your queries.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Hi @AzimiJ,

We are pleased to learn that your issue has been resolved. Kindly mark the response that resolved your query as the accepted solution, as this will help other community members facing similar challenges to find solutions more effectively. Please feel free to continue using the Fabric Community for any further assistance with your queries.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Thankyou, @lbendlin, for your response.

Hi @AzimiJ,

We are pleased to learn that your issue has been resolved. Kindly mark the response that resolved your query as the accepted solution, as this will help other community members facing similar challenges to find solutions more effectively. Please feel free to continue using the Fabric Community for any further assistance with your queries.

Thank you.

AzimiJ
Regular Visitor

Thank you Ibendlin,
I have changed Level and Trend to TheLevel and TheTrend, issue resolved.

Best!

lbendlin
Super User
Super User

lbendlin_0-1745435202370.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.