Hi all,
Happy new year (it's still acceptible to say that half way through January right?)
I am currently trying to do some reporitng on an internal app to total the amount of atendees to a range of classes, the data is spanned across 3 SharePoint lists.
Lists:
- Adults (Name, Gender, ID)
- Class (ClassName)
- Visits (ClassName.Value, AdultID-ID of adult patched in-)
The app allows you to go into a class and log a new visit for one of the Adults.
For my reporting I need to be able to check what genders attended which classes, however there is 40+ classes.
My current solution I have started on is a bit mental:
I have a HTML table, but I am using hidden galleries in order to return the amount of visitors to a class but then doing a dynamic lookup on each item in the gallery to lookup the gender value for that user. Seen as that data is stored in the Adult table, not the Visit table which the gallery is querying.
Text label on the gallery items:
LookUp(Adults, AdultID = ThisItem.UserID,Gender.Value)
My HTML table is then running a countrows on that gallery text input which is filtered to the class:
CountRows(Filter('gal.Class1'.AllItems,Gender.Text = "Female")
CountRows(Filter('gal.Class1'.AllItems,Gender.Text = "Male")
etc
I'm four hours into this and realized this is not a workable solution as I am going to end up with 50 hidden galleries and any additional classes added in future are going to require me to go in and manually add the class to the html table as well as a corrosponding hidden gallery.
Any help is appreciated as always 🙂