Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I am using the below expression in a bat chart(butterfly), let me know if you have any suggestion to optimize this further other than removing string comparison
num(
-1*
fabs(
if(match([Account.Account_Country__c],'BG','RS'),
sum({<
CalendarMonthAndYear={">=$(=Date(vCalendarMonthAndYear_vf))<=$(=Date(vCalendarMonthAndYear_vt))"},
[InfoProvider ID]-={'GIMRH_C17'},
[Currency Val]=,
[Material.Group.Description]-={'FINANCE DUMMY MAT.'}
>}[Sales Qty FND in Unit Sales qty]* $(vUoMMultiFactor))
,
sum({<
CalendarMonthAndYear={">=$(=Date(vCalendarMonthAndYear_vf))<=$(=Date(vCalendarMonthAndYear_vt))"},
[InfoProvider ID]-={'GIMRH_C17','GIMRH_C51'},
[Currency Val]=,
[Material.Group.Description]-={'FINANCE DUMMY MAT.'}
>}[Sales Qty FND in Unit Sales qty]* $(vUoMMultiFactor))
)
+
sum(
{<
CalendarMonthAndYear={">=$(=Date(vCalendarMonthAndYear_vf))<=$(=Date(vCalendarMonthAndYear_vt))"},
[Currency Val]=,
[Material.Group.Description]-={'FINANCE DUMMY MAT.'}
>}
[Quantity Reported (Seeds) in Base Unit of Measure]* $(vUoMMultiFactor))
+
sum(
{<
CalendarMonthAndYear={">=$(=Date(vCalendarMonthAndYear_vf))<=$(=Date(vCalendarMonthAndYear_vt))"},
[Currency Val]=
>}
[Quantity Reported GSAP in Base Unit of Measure])
)
,'#,##0;#,##0'
)