Jim,
Since my last posting on this topic, I have changed the name of field “D_Exp Year” to simply “Date”.
I am using the following formula to make a certain calculation:
pattern(arraynumerictotal(arraybuild(cr(),“Expenses”,“Amount”,
{yearvalue(Date)=val(2019)}),cr())
/
arraynumerictotal(arraybuild(cr(),
“Trips”,“Time”,{yearvalue(Date)=val(2019)}),cr()),"$#,")
The formula is working as expected when I summarize 2019 data not using the percent procedure above, regardless of whether I expand or collapse summaries. But it is producing unexpected results when running the percent procedure first. Can the procedure be tweaked to allow the array formula to work properly, i.e. using only the grand total of “Amount”?
Thank you.