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 patch if catego...
Power Apps
Unanswered

how to patch if category choice column is selected with the correct value.

(0) ShareShare
ReportReport
Posted on by 313

Hi all,

Thank you for your time to read this message.
i have a expense report application which contain 3 different sharepoint list (Expenses, LineItems, Individual Claim)
Expenses List (contain ID, Title, Department, Status, Finances Status)
LineItems List (contain Category, Cost, Date, Description & ReportID (lookup to Expenses-ID)
Individual Claim List (contain lookup Expenses-ID, lookup LineItem-ID, Cost, Date, Category, User(People option)

I want to have this function when finance member click on a reimburse button, i want it to copy the data to Individual Claim List. Only if the selected LineItems category contain (Staff - Welfare), copy data of Expenses-ID, Selected-LineItems ID, Selected-lineitems Category (staff -Welfare), Selected-lineitems Cost,  User (People Option)
Please kindly advise what is the best way to do this.

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @WeiMingLeong,

    Do you want to copy corresponding items to Individual list?

    Could you please share a bit more about your scenario?

     

    Actually, if you want to capture items based on the Category(staff -Welfare), I think the best method is the LookUp() function.

    Supposed that there are some labels to display your needed info from Expense list and LineItems List, you just need to set the Text property of each Label as below:

    If(CategoryDropdown.Selected.Value="Staff - Welfare",LookUp())

    Note that there should be a primary key in your Individual Claim List so that you could get expense id or other info based on this primary key.

  • Wei Ming Leong Profile Picture
    313 on at

    HI @v-qiaqi-msft ,

    yes i want to copy the corresponding item to individual claim list.
    in the finance view item screen, the items can have multiple items.
    This marked blue box is LineItems gallery. It also filter base on Filter(LineItems,ReportID.Id = SelectedReport.ID)

    WeiMingLeong_1-1659512819943.png

     

    So when finance member click on the reimbursed button.
    I would want it to check if the lineitems category contain value staff welfare - medicial / dental,  i want it to copy data  from both Expense List and LineItems List to Individual Claim List 
     Individual Claim Lists Columns-

    ExpenseID : base on LookUp from Expenses list ID.

    LineItemsID : base on lookup from LineItems list ID.

    Category : from selected LineItems that contain value staff welfare - medicial / dental

    Cost : from the selected LineItems Cost.

    ClaimUser :  From selected Lineitems people group.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard