I am building a Power Apps application that connects to my SharePoint. My SharePoint list contains various columns including REGION (choice column), QUOTE VALUE (USD) (calculated column), FACTORY (choice column), PRODUCT (choice column), and PERIOD QUOTE SUBMITTED (calculated column), among many others. The core challenge I'm facing is that I need to create a gallery in my Power App that displays aggregated summary data - specifically, I want the gallery to show only one row per unique region (instead of all individual quote records), where each row displays the region name along with the summed total of all quote values for that region. Additionally, I need this summary view to be dynamically filterable using three dropdown controls: one for "PERIOD QUOTE SUBMITTED" (the month/period when quotes were submitted), one for "PRODUCT" (the product type), and one for "FACTORY" (the manufacturing facility). The filtering should work flexibly - meaning I want users to be able to select any combination of filters (one, two, three, or none at all) and the gallery should automatically recalculate and display the regional totals based on only the quotes that match the selected filter criteria. For example, if a user selects "October 2024" as the period and "Product A" as the product, the gallery should show one row for each region, but the totals should only include quotes from October 2024 for Product A. The technical complexity I'm encountering arises from the fact that my SharePoint list columns use the Choice data type, which stores values as record objects with a .Value property rather than simple text strings, and my calculated columns have spaces and special characters in their names (like 'QUOTE VALUE (USD)'), which requires special syntax handling in Power Apps formulas. I was inspired by a similar application I saw that displayed unique areas in a gallery, but that application had a fundamentally different data structure - it used a pre-aggregated SharePoint list where there was already one record per area per period, whereas my data is granular transaction-level data that requires dynamic grouping and aggregation using Power Apps' GroupBy and Sum functions to achieve the same visual result.
any idea on how I could achieve this as I was getting the data for all records when in reality I want them to be grouped