Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Welcome to Qlik Community! Check out our new navigation! FIND OUT MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
neoshantanu08
Contributor
Contributor

Expression optimization

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'

)

1 Reply
sunny_talwar

Is there a reason for you to look for ways to optimize this? On the first look it doesn't seem there is much you can do, but if you can highlight issues with specific parts of the expression, may be we can think of alternatives