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 / This formula uses an a...
Power Apps
Answered

This formula uses an area that is not currently supported for evaluation Datatype: text

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all. Hope that one of you can guide me in the tight direction.

 

I have a PowerApp that has a form (Form1) that has a data connection to a SharePoint list. Nothing fancy there. On another screen I have a label that contains data I want to write back to a field in Form1. In the label I am using an if statement to do the right calculations based on the choise in a dropdown control in Form1. The calculation works like intended, but the data from the label is not getting back to the field in Form1, and I cannot find out why.

 

PowerAppsError.PNG

 As you can see form the picture above, the calculation works fine, but the data is not writen back to the text field in Form1.

  • DataCardValue2 is a standard dropdown control in Form1
  • DataCardValue5 is a standard textfield in Form1

The textfield in Form1 is empty, and I get this error message:

This formula uses an area that is not currently supported for evaluation Datatype: text

 

I have tried to put the if statement inside a "text(" but that did not help. I have tried to use "Value(", "Sum(" (in desperation), and finally tried to use a variable, but nothing seems to let me get the data from the label into the Form1 text field.

 

Can anyone guide me in the right direction?

Thanks in advance

/Frank
Denmark

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @Anonymous ,

    You need this - please excuse any spelling - I had to OCR your picture. You need to convert DatacardValue5 to a number

    If(
     DataCardValue2.Selected.Value="AC"; 
     Text(
     Sum(
     MaanedsLoenLoentrinstabel_1 + 
     TiliaegPrMd
     ) / 37 * 
     Value(DataCardValue5.Text);
     [$-da-DK]#.00"
     );
     DataCardValue2.Selected.Value = "Generelt"; 
     Text(
     Sum(
     MaanedsLoenLoentrinstabel_l + 
     TillaegReguLeringGenerelt
     ) / 37 *
     Value(DataCardValue5.Text);
     "[$-da-DK]#.00"
     );
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz  and thank you for your suggestion. However I do not get any data from data back from the label. The error message is still the same. It can be a bit hard to explain, but I will try it this way:

     

    The form control is a standard text fieldForm1Field.PNG

    In the salery label I have done as you have mentioned, like this:

     

    If(
     DataCardValue2.Selected.Value = "AC"; Text(Sum(MaanedsloenLoentrinstabel_1 + TillaegPrMd) / 37 * Value(DataCardValue5.Text); "[$-da-DK]#.00");
     DataCardValue2.Selected.Value = "Generelt"; Text(Sum(MaanedsloenLoentrinstabel_1 + TillaegReguleringGenerelt) / 37 * Value( DataCardValue5.Text); "[$-da-DK]#.00");
     DataCardValue2.Selected.Value = "Sundhedskartellet"; Text(Sum(MaanedsloenLoentrinstabel_1 + TillaegReguleringSundhed) / 37 * Value(DataCardValue5.Text); "[$-da-DK]#.00");
     DataCardValue2.Selected.Value = "Sundhedskartellet-ledere"; Text(Sum(MaanedsloenLoentrinstabel_1 + TillaegPrMd) / 37 * Value(DataCardValue5.Text); "[$-da-DK]#.00"))

     

    The label "MaanedsloenLoentrinstabel_1" is also getting data from different SharePoint lists, and the code here is:

     

    If(
     DataCardValue2.Selected.Value = "Generelt"; Text(Sum(LookUp(Loentrinstabel;Title = Value(LabelSumTrin_1.Text);månedsløn)));
     DataCardValue2.Selected.Value = "AC"; Text(Sum(LookUp(ACloen;Trin = Value(LabelSumTrin_1.Text);Maanedsloen)));
     DataCardValue2.Selected.Value = "Sundhedskartellet"; Text(Sum(LookUp(LoenSundhedskartellet;Titel = Value(LabelSumTrin_1.Text);Maanedsloen)));
     DataCardValue2.Selected.Value = "Sundhedskartellet-ledere"; Text(Sum(LookUp(LoenSundhedskartelletLedere;Titel = Value(LabelSumTrin_1.Text);Maanedsloen))))

     

    I think it must have something to with this, because the salary label gets this output: "20.958", while the MaanedsloenLoentrinstabel_1 label gets this outout: "20764,08". It must be something about how I format those two fields, but I cannot see what is wrong, because it all works fine, until i need to get the data from the MaanedsloenLoentrinstabel_1 into the form textfield. Hope this can give you an bette idea of where I have gone wrong 😞

     

    I can see that the column in the SharePoint is a number column., and the data in the SharePoint field is for example "21.123", while it in PowerApps is "21123".

     

    THX in advance

     

    /Frank

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Ok @Anonymous ,

    Firstly the question you asked in your post was about DatacardValue5 and why you were not getting a result and I have answered that. This question introduces a whole heap of new information and really should be another post, but I will look at a few things here. 

    Putting this on a label and relying on it to calculate and then affect another formula could be problematic, however looking at it below

    If(
     DataCardValue2.Selected.Value = "Generelt"; 
     Text(
     Sum(
     LookUp(
     Loentrinstabel;Title = 
     Value(
     LabelSumTrin_1.Text
     );
     månedsløn
     )
     )
     );
     DataCardValue2.Selected.Value = "AC"; 
     Text(
     Sum(
     LookUp(
     ACloen;Trin = 
     Value(
     LabelSumTrin_1.Text
     );
     Maanedsloen
     )
     )
     );
     DataCardValue2.Selected.Value = "Sundhedskartellet"; 
     Text(
     Sum(
     LookUp(
     LoenSundhedskartellet;
     Titel = 
     Value(
     LabelSumTrin_1.Text
     );
     Maanedsloen
     )
     )
     );
     DataCardValue2.Selected.Value = "Sundhedskartellet-ledere"; 
     Text(
     Sum(
     LookUp(
     LoenSundhedskartelletLedere;
     Titel = 
     Value(
     LabelSumTrin_1.Text
     );
     Maanedsloen
     )
     )
     )
    )

    each option has Text wrapped around it. Although this should calculate off a label, you do not need it.

    The first items you should examine rather than trying to work out from the whole formula where the issue might be, put some labels on the screen and type each element in them and see it you get the values from them. The ones I see you need are

    1. MaanedsloenLoentrinstabel_1
    2. TillaegPrMd
    3. Value(DataCardValue5.Text
    4. TillaegReguleringGenerelt
    5. TillaegReguleringSundhed

    If you cannot see the values in these before you run the code, then clearly you will not get the result you are wanting and you will also work out from what is not showing where the issue may be.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HI @WarrenBelz THX again one more time for having a look at it again. And I must admit that I might not have it all walked throug the first time, but your previous answer got me into another path, and I think I have mixed things up with text/value. I will do as you have suggested, and make a bunch of labels to see what results I get.

     

    THX again 🙂

     

    /Frank

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard