Below is explanation of how app-stats and sdwan-acc-ckt-app-stats are computed.
For a flow, there is forward stats and reverse stats depending on direction on which the flow was seen for the first time.
Forward stats get accumulated as transmit stats and reverse stats get accumulated as receive stats.
SDWAN App stats are accumulated at tenant/appliance/app/wan link level. Transmit and receive stats are in the context of WAN link.
App stats are accumulated at tenant/appliance/app level regardless of which interface traffic is received.
Consider following flows
S1 fwd stats - 100
Rev stats - 50
Ing interface - LAN1
Egr interface - WAN1
app - app1
S2 fwd stats - 100
Rev stats - 50
Ing interface - LAN1
Egr interface - WAN1
app - app1
S3 fwd stats - 100
Rev stats - 50
Ing interface - WAN1
Egr interface - LAN1
app - app1
S4 fwd stats - 100
Rev stats - 50
Ing interface - WAN1
Egr interface - LAN1
app - app1
SDWAN APP STATS – App: app1, Link: WAN1, TX :300 (S1fwd+S2fwd+S3Rev+S4Rev), RX :300 (S1Rev+S2Rev+S3Fwd+S4Fwd)
APP STATS – App: app1, TX:400 (S1Fwd+S2FWD+S3FWD+S4FWD), RX:200(S1Rev+S2Rev+S3Rev+S4Rev)
Total volume/BW will be same in both the stats.