I am developing app in teams power app.
Data in the tables, having only 128 records
I wanted if the gallery filter count = 1 then false and
If no record then true
I have the below code on select event of the Gallery control.
Some time it works, some time it hangs, no result.
I click here there on the screen and then on the gallery filtered item again, then it works,
Could not understand, why it hangs for the result of true or false
Does it need to write in another way to obtain the true false result
If(
CountRows(
Filter(
TableMachRemarks,
Model = SearchResultGallery_4.Selected.Model && SerialNo = SearchResultGallery_4.Selected.Serial
)
) = 1,
Set(
gblRemarksNewRecord,
false
),
CountRows(
Filter(
TableMachRemarks,
Model = SearchResultGallery_4.Selected.Model && SerialNo = SearchResultGallery_4.Selected.Serial
)
) = 0,
Set(
gblRemarksNewRecord,
true
)
)