Apologies for not being clearer.
SharePoint list 1 has a few columns, from which I have connected to a Gallery in PowerApps.(I will call it Gal1)
SharePoint List 2 also has few columns, This includes a RefID column (type is number) and Status Column (type is choice) with "Open" or "Close" choice. The Numbers are allocated to a record in RefID through a variable created in SharePoint list 1, from the ID Column. Thus relating the record from SharePoint list 1 to a record or records in SharePoint list 2 (SharePoint list 1 ID = SharePoint list 2 RefID). I have created a Gallery for this too. (I will call it Gal2)
When I select a record in Gal1 and navigate to Gal2, all new records created therein have a RefID = ID column from the record in Gal1 (the record selected and navigated from). I have created multiple records in Gal2 that have the same RefID as the ID of Record in Gal1. Say Gal 1 Record ID = 47, If select and navigate to Gal2 and add 5 records, all those records will have RefID as 47.
Question 1: In Gal 1. on the record / item, I want to show if (a) how may records in Gal2 relate to that particular record (in Gal1). [i.e. How many records in Gal2 have the same RefID as Gal1 Record ID]
Question 2: In Gal 1. on the record / item, i want to find out, of those records relating to the Gal1 Record (given by the answer to question 1, How may are of status "Open")
e.g: we should have something like Total Records: 5 Open Records: 2
Would Really appreciate some help