Hi @Kepcla
The below example inserts data into a collection while pressing a button. that collection will be used as a source for the gallery. if you want to generate without pressing button modify the code according but below code can be used as base logic.
1. Add a button and place this code at OnSelect trigger.
Collect(RangeValues,
{
RangeStart: 0,
RangeEnd: 0,
RangeVal: 0
}
);
Set(
StartRange,
First(
Sort(
RangeValues,
RangeStart,
SortOrder.Descending
)
).RangeStart
);
Notify(Text(StartRange),NotificationType.Information);
If(
StartRange = "",
Set(
StartValue,
0
);
Set(
EndValue,
2
),
Set(StartValue,
StartValue+2);
Set(
EndValue,StartValue+2);
);
Collect(
RangeValues,
{
RangeStart: StartValue,
RangeEnd: EndValue,
RangeVal: RandBetween(
1,
100
)
}
);
2. Add A gallery and place below code at Item Property
Filter(RangeValues,RangeVal<>0)