cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ahmadkabha
Frequent Visitor

when change Value of Label reset Value of label 2 to Zero

Hi,
I am using an InputText that calls TotalSample and DropDown to select the shift.
I use 3 Gallery to filter the shift and use, LastN(Source Data).
1.morning (on Text : TotalSample.text)
2.evening (on Text: TotalSample.text)
3.night (on text : TotalSample.text)
The problem is:
I want the sum of morning + evening + night.
But there is a problem: when I enter a new date, the value of evening + night is kept.
How can I reset the value of evening + night  to zero when I change the value of morning?

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @Ahmadkabha :

Do you want to reset evening and night when the value in morning is changed?

If so, you could set the morning's OnChange property to:

Reset(evening);Reset(night)

 Best Regards,

Bof

Hi,
I am using label in gallery :
1. Gallery 1 Filter it by Shift (Morning ) - then used label1 on text :.Label1(Morning) : Text : thisitem.totalsample.
2. Gallery 2 Filter it by Shift (Evening) - then used label2 on text :.Label2(Evening) : Text : thisitem.totalsample..
3. Gallery 3 Filter it by Shift (Night) - then used label3 on text :.Label3(Evening) : Text : thisitem.totalsample.
 our goal want Sum 3 Shift (Morning-Evening-Night) but the Today  want start from 7:00 and End 7:00 , not from 00:000 to 24:00.
I used on the Label IF statement but return Blank.
 so
1.How can do when Label1(Morning) Change then change Label2(Evening) and Label3(Night) to Zero?



 

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,425)