web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error : formula uses a...
Power Apps
Answered

Error : formula uses a scope, which is not currently supported for an evaluation

(0) ShareShare
ReportReport
Posted on by 691

Hello,
I'm trying to display dates but it doesn't work. I have an error as shown in the screenshot below but I don't understand why.
The error in English: This formula uses a scope, which is not currently supported for an evaluation

 

s44_0-1658317428488.png

 

other screen :

s44_1-1658317727145.png

 

Can you help me please ? Thanks in advance 😞

Categories:
I have the same question (0)
  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hello,

     

    I think you should replace the ; by , inside the Set and DateAdd functions as the parameter seperator for functions is ","

     

    Best regards,

    Alaa

  • Verified answer
    sperry1625 Profile Picture
    763 Super User 2024 Season 1 on at

    That error is only telling you that it cannot evaluate the formula within the context. This happens sometimes when the Studio cannot ascertain the value of a particular variable in order to show the value / result of the formula. There is no error in your formula, it looks correct. You are adding days, ThisItem.Value, to your start value, varVideoFirstDayView (The date for the first date box in the upper left).

    If you highlight the varVideoFirstDayView variable name, what value does it show you? It should be 6/25/2022, using your formula. Your formulas are:

    Set( varVideoMonth, DateValue( Month( Today() ) & "/1/" & Year( Today() ) ) ); //First day of the current month
    Set( varVideoFirstDayView, DateAdd( varVideoMonth, -Weekday( ctxStartOfMonth ) + 1, Days ) ); // Date for upper left month grid
    // OR
    Set( varVideoFirstDayView, DateAdd( varVideoMonth, -Weekday( ctxStartOfMonth, 2 ), Days ) ); // Date for upper left month grid

    You need to add one to the Weekday value, or pass a "2" as the second parameter, to come up with the correct start date. NOTE: If your ThisItem.Value is one-based you don't need to do this.

    I assume that ThisItem.Value is a zero-based (See note above) index of some kind. You just keep adding the Value to the start date.

    Are your variables only set when you click the button?  If so, you need to select the button and what you have should work as expected.

     

    If this helps, please select this as the Solution.

     

    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard