I am trying to provide a little bit of "reporting" from my gallery to my users. I've been able to set up dynamic lables which display the total amount, the max amount and the average amount due for all visible items in the gallery. I'd like to take it a step further and display the total amount based on the "Aging Category". In my app we have 6 different aging categories ( "Current," "31-60," "61-90," "91-120," "121-150," "Over 150,") and I would like to display the total balance for each in a dynamic label, just like I was able to do with the totals. I've tried using an If statement to filter based on aging category but I've had no success so far. Do I need to use a collection and group them first? My formula is a complete mess at this point and definitely doesn't work but below is what it looks like
Thank you for any and all help.
Sum(If(AGING_x0020_CATEGORY = "Current", UpdateContext:({TotalCurrent: 'BALANCE AMOUNT'}),'Total Current')