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 / How to correctly show ...
Power Apps
Answered

How to correctly show a label in another screen using a variable?

(0) ShareShare
ReportReport
Posted on by 99

Hi,

 

What is the best way of displaying the calculation of these labels across screens.

The current way I am doing it is as below:

Gana_Dube_0-1669378613787.png

In the text property for label 4, I have the following:

 

// lbl_4 >Text:

lbl_1 + lbl_2 + lbl_3

 

Then in screen 2

In the text property for label 5, there is the following:

 

// lbl_5 > Text
lbl_4

 

Is this the correct way to show the value of lbl_4 in the second screen?

 

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,715 Super User 2026 Season 1 on at

    Hi @Gana_Dube 

    Yes, this is an acceptable way to show the value of lbl_4 in the second screen.

    The comment I would make is that I tend to explictly convert text values to numbers to avoid any potential problems. eg - the mobile players can behave differently and this syntax will be more guaranteed to work everywhere.

    Sum(Value(lbl_1.Text) , Value(lbl_2.Text), Value(lbl_3.Text))

    The second point is that this will cause a cross screen dependency between screen 2 and screen 1, which is likely to cause a warning in the "app checker". For a small app, this will be ok but on a larger app, it would be better to minimise these types of dependencies by using a variable.

    To use a variable, you would locate the formula that you use on screen 1 to navigate to screen 2, and you would pass the calculation in the call to navigate.

    Navigate(Screen2, 
     None, 
     {locTotal:Sum(Value(lbl_1.Text) , Value(lbl_2.Text), Value(lbl_3.Text))}
    )

    On label 5, you can then set the text property to locTotal to display the total.

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Gana_Dube ,
    You can directly refer value in controls and use the value in different screen. For example if you have label1, label2 and label3 in screen 1 and you want to show sum of these 3 labels in screen 2, you can use - 
    Sum(Value(Label1.Text), Value(Label2.Text), Value(Label3.Text))

  • Gana_Dube Profile Picture
    99 on at

    @timl correct, that is what prompt my alternative solutioning, due to the insufficient delay loading warnings in the " app checker ", which were mostly linked to the "lbl_5". There are more labels to 30 other warnings.

     

    I am not understanding the navigation call to variable method.

    Where is that function added?

     

    The last part is fine

    //lbl_5 > Text:
    locTotal

     

  • Gana_Dube Profile Picture
    99 on at

    @NandiniBhagya20 the challenge with this method, is that I make any computational string changes, I'll have to manually update the second screen. Example.

    If I remove Value(Label3.Text) from the first screen, I'll have to remember to do that for the second screen. But the current scenario is that I have 40+ labels in the second screen. So a dynamic approach is much better. Because lbl_4 never changes, only the values in it.

  • timl Profile Picture
    36,715 Super User 2026 Season 1 on at

    Hi @Gana_Dube 

    How do users navigate to screen 2 from screen 1? If you locate the icons/buttons that navigate the user to screen 2, there will be a call to the Navigate function. This is the formula that you would modify.

  • Gana_Dube Profile Picture
    99 on at

    Hi @timl , thank you, I populated only 1 navigation control with the following command:

    // Navigation to Screen 2
    Navigate(screen_2, 
     ScreenTransition.Fade, 
     {lbl_5:Sum(Value(lbl_1A.Text) + Value(lbl_1B.Text) + Value(lbl_1C.Text)),
     lbl_6:Sum(Value(lbl_2A.Text) + Value(lbl_2B.Text) + Value(lbl_3B.Text))}...
    )

    The difference is that I have 5 screens in total, and the last screen is the summary screen. And two 5 navigation buttons which lead to the last screen, which means that I have to duplicate the same code in all the navigation icons which quick jump to the summary.

     

    If only I could create a global function which does all the calculations then reference that function in all the navigation to final screen.

    Gana_Dube_0-1669628939841.png

     

     

     

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
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard