Just learning about the WITH function and how to avoid delegation issues with Sum. My filtered data is less than 2000.
Is there a way I can use WITH with my formula below?
Text(Sum(Filter(Gateways,'VPP Dates'>=DatePicker1.SelectedDate,'VPP Dates'<=DatePicker2.SelectedDate,Gateways.Value="FDJ",BPR.Value="Y"),NTEI)/Sum(Filter(Gateways,'VPP Dates'>=DatePicker1.SelectedDate,'VPP Dates'<=DatePicker2.SelectedDate,Gateways.Value="FDJ",BPR.Value="Y"),NTEI_Total)*100,"0%")
Solved! Go to Solution.
Hi @kgordish ,
This should be close - free-typed so watch commas/brackets etc
With(
{
wList:
Filter(
Gateways,
'VPP Dates' >= DatePicker1.SelectedDate &&
'VPP Dates' <= DatePicker2.SelectedDate &&
Gateways.Value = "FDJ" &&
BPR.Value = "Y"
)
},
Text(
Sum(
wList,
NTEI
) /
Sum(
wList,
NTEI_Total
) * 100,
"0%"
)
)
I have a blog on this subject that may interest you.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @kgordish ,
This should be close - free-typed so watch commas/brackets etc
With(
{
wList:
Filter(
Gateways,
'VPP Dates' >= DatePicker1.SelectedDate &&
'VPP Dates' <= DatePicker2.SelectedDate &&
Gateways.Value = "FDJ" &&
BPR.Value = "Y"
)
},
Text(
Sum(
wList,
NTEI
) /
Sum(
wList,
NTEI_Total
) * 100,
"0%"
)
)
I have a blog on this subject that may interest you.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
@WarrenBelz Thanks for the general format. Helpful. About to wrap up for the day. Tomorrow I will give a spin and likely extend "A solution".
Thank you Professor.
Kevin