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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.