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 / I want to update "...
Power Apps
Unanswered

I want to update "H" value based on the Quarter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

For Single item there is 4 Quarter is there in the SP list 

Raj_Saha_0-1632451730488.png

in the PowerApps I wanted to Set a variable if they click on the button . for the particular quarter value it will save collection and SharePoint

Raj_Saha_1-1632451969122.png

If I click on the logo in the SP and Collection it will Save value for the particular Qtr with the value of "H"


 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    I assume you have a gallery with 4 buttons. For Button 1, OnSelect property of button to

     

    Patch(Datasource, LookUp(Datasource, ID = ThisItem.ID), {Q1MappedAct:"H"})

     

      

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    only one button that with Eye Icon .
    but I'm using dropdown value for filtering the gallery

    Raj_Saha_0-1632489316173.png

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    Sharepoint will be updated based on the dropdown and when the user clicks an icon on the gallery.

    Patch(
     [@Projects],
     LookUp(
     [@Projects],
     ID = ThisItem.ID
     ),
     If(
     "FY" in Dropdown1.Selected.Value,
     {
     Q1MappedAct: "H",
     Q2MappedAct: "H",
     Q3MappedAct: "H",
     Q4MappedAct: "H"
     },
     "Q1" in Dropdown1.Selected.Value,
     {Q1MappedAct: "H"},
     "Q2" in Dropdown1.Selected.Value,
     {Q2MappedAct: "H"},
     "Q3" in Dropdown1.Selected.Value,
     {Q3MappedAct: "H"},
     "Q4" in Dropdown1.Selected.Value,
     {Q4MappedAct: "H"}
     )
    )

     

    Please let me know how the year is mapped to SP. So that we can change the patch command

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Dropdown value we are greeting from

    Raj_Saha_0-1632664801467.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    • Let me know if the patch command works or not.
    • If not then please share the Sharepoint structure to see how the year is utilized.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I don't want to patch directly to SP 
    First I want update in collection after that I want save in SP
    Sharepoint I'm using end Qtr filed 

    Raj_Saha_0-1632672632001.png

     



  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Suppose I want to hide data  for Qtr 1
    then I need save the data on the same line Q1MappedAct field value should be to "H"
    If Qtr3 then Q3MappedAct field value should be to "H"

    Raj_Saha_1-1632673087618.png


    and currently in which QTR we will find from the drop down 

    Raj_Saha_2-1632673174625.pngRaj_Saha_3-1632673217729.png


    First I want save data to Collection using of the "update if" function 
    and all the value I want to save in the function using forAll function 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Suppose I want to hide data  for Qtr 1
    then I need save the data on the same line Q1MappedAct field value should be to "H"
    If Qtr3 then Q3MappedAct field value should be to "H"

    If I want to unhide the row for the particular QTR if I click to the eye icon value should be for Column Q1MappedAct  "" blank() data

    Raj_Saha_1-1632673087618.png


    and currently in which QTR we will find from the drop down 

    Raj_Saha_2-1632673174625.pngRaj_Saha_3-1632673217729.png


    First I want save data to Collection using of the "update if" function 
    and all the value I want to save in the function using forAll function 

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard