Hi,
I want to make a sequence number in my gallery, so people can see sequence of the machine based on list.
I tried this:
Clear(colNumberedMachine);
ForAll('Recap SOW',
Collect(colNumberedMachine,
Last(FirstN(AddColumns('Recap SOW',
"MachineNumber",
CountRows(colNumberedMachine)+1
),
CountRows(colNumberedMachine)+1
)
)
)
)
Source: Power Apps Guide - Formulas - Generating Row Numbers - Power Apps Guide - Blog
But, the label doesn't show the number. Can anyone help me?
Thank you.
Please see my amended post. You were too quick
@firda59 ,
That is the Items of the Gallery, not the OnVisible code.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
Hi @WarrenBelz
I put this code OnVisible function:
With(
{
wList:
Filter(
'Recap SOW',
StartsWith('# No. PO', cobacoba.Text))
},
ForAll(
Sequence(CountRows(wList)),
Patch(
Index(
wList,
Value
),
{RowNo: Value}
)
)
)
Then what should I do next? I input RowNo in my label text in Gallery, but error
Hi @firda59 ,
If you use the first part of this blog of mine you will have the column you need.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
WarrenBelz
770
Most Valuable Professional
stampcoin
494
MS.Ragavendar
399