web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Detect Data Sequence
Power Apps
Unanswered

Detect Data Sequence

(0) ShareShare
ReportReport
Posted on by 372

Hello,

 

I have a process sequence database, where the contents are the product name and the process name. I want when my tracking database shows the process name of product XXX in line 3, then my text input can automatically detect the process name in line 4.

firda59_1-1691377236127.png

 

When my tracking database shows the product process name XXX in line 4, my text input can automatically detect the process name in line 5.

 

and keep going until the final line of the process name sequence of the product, then my input text can automatically detect the words "process is complete".

 

This is the example of my process sequence database.

Productmachineprocess
xxxaaablabla
xxxbbbblibla
xxxcccblable
yyyybbbblabli
yyyycccblabla
yyyyaaablable
yyyydddblablu

 

How to do it? Can anyone help me?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @firda59 ,

     

    You can number the records sequentially in this way

    ForAll(Sequence(CountRows(databaseName),1,1),Patch({ItemNo:Value},Index(databaseName,Value)))

     I assume you tracking the item by select the item in a gallery(Gallery), then if you want to get the next item's process ,you could try this formula:

    With(
     {tableAddItemNo:ForAll(Sequence(CountRows(databaseName),1,1),Patch({ItemNo:Value},Index(databaseName,Value)))},
     LookUp(tableAddItemNo,ItemNo=LookUp(tableAddItemNo,Product=Gallery1.Selected.Product && machine=Gallery1.Selected.machine && process=Gallery1.Selected.process).ItemNo+1).process
     )

     

    Best Regards,
    Bof

  • firda59 Profile Picture
    372 on at

    hi @v-bofeng-msft 

     

    I write the formula in text input:
    With(
    {tableAddItemNo:ForAll(Sequence(CountRows(AllRecapSOW),1,1),Patch({ItemNo:Value},Index(AllRecapSOW,Value)))},
    LookUp(tableAddItemNo,ItemNo=LookUp(AllRecapSOW,'# No. PO'= ListKomponen.Selected.'SO/PO/WBS' && 'Area '=ListKomponen.Selected.'Current Location' && 'Proses Name'=ListKomponen.Selected.'Proses Name').ItemNo+1).'Proses Name'
    )

     

    I got error like this: Name isn't valid. 'ItemNo' isn't recognized.

     

    Can you help me to fix it? Thank you

  • v-bofeng-msft Profile Picture
    on at

    Hi @firda59 ,

     

    Could you please check if this record really exists?

    LookUp(
    	 tableAddItemNo,
    	 ItemNo=LookUp(
    	 AllRecapSOW,
    	 '# No. PO'= ListKomponen.Selected.'SO/PO/WBS' && 
    	 'Area '=ListKomponen.Selected.'Current Location' && 
    	 'Proses Name'=ListKomponen.Selected.'Proses Name'
    	 )

     

    Best Regards,

    Bof

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 840 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard