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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps "This formu...
Power Apps
Answered

Power Apps "This formula currently uses a range that is not supported for calculations"

(0) ShareShare
ReportReport
Posted on by 35

I have a table in Sql server that I cannot edit. It has several nvarchar type columns and columns named 2022-07 etc. These are of type float. I created a gallery in powerapps to which I manually add text labels (ThisItem.Key for example) Everything is fine until I get to the float type columns. Powerapps prompts me to then save the code as ThisItem.'2022-07' but at that point I get an error and in addition all the other gallery elements that were previously working properly disappear and I can only restore them by adding the gallery from scratch. As for the values in the 2022-07 column, they are, for example, 100, 121.97 and 0.

The error as in the title

Categories:
I have the same question (0)
  • timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    @Martyna1107 

    To clarify, was '2022-07' originally an nvarchar column that you subsequently changed to float? If so, have you refreshed the data source in Power Apps?

  • Martyna1107 Profile Picture
    35 on at

    No, in the table there are columns of type nvarchar - everything is fine with them - and of type float (2022-07). The column type was defined when the table was created and has not been changed since. On the other hand, I have already tried refreshing the data source, deleting and adding them again. Also if it will helps - these columns are set up as not null. I worked with PowerApss before and I didn't have such a problem - but I have never worked with float type column

  • Martyna1107 Profile Picture
    35 on at

    No, in the table there are columns of type nvarchar - everything is fine with them - and of type float (2022-07). The column type was defined when the table was created and has not been changed since. On the other hand, I have already tried refreshing the data source, deleting and adding them again. Also if it will helps - these columns are set up as not null. I worked with PowerApss before and I didn't have such a problem - but I have never worked with float type column

  • timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    Assuming you just want to display the value in the gallery, if you call the Text function, does that make a difference?

    Text(ThisItem.'2022-07') 
  • Martyna1107 Profile Picture
    35 on at

    Yes, I just want to display that value. Unfortunately Your solution doesn,t work, as soon as I type it in formula bar everything dissapear in my gallery

  • Martyna1107 Profile Picture
    35 on at

    Yes, I just want to display that value. Unfortunately Your solution doesn,t work, as soon as I type it in formula bar everything dissapear in my gallery

  • timl Profile Picture
    36,411 Super User 2025 Season 2 on at

    In the settings of your app, is the 'formula-level error management' setting enabled? If not, could you try enabling it to see if it makes a difference?

  • Martyna1107 Profile Picture
    35 on at

    Yes, it has been enabled since the application was created

  • Martyna1107 Profile Picture
    35 on at

    I just checked the operation on another table, the float column values display normally but also there are no floating point numbers in the data. Only values such as 0 or 2

  • Verified answer
    Martyna1107 Profile Picture
    35 on at

    The problem was column names starting with numbers. I changed it to sth like Date:2023-07 and it works perfectly fine

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard