Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
mohan2391
Creator III
Creator III

Expression

Hi,

Can you change the following expression so that performance should be good and result should be same.

SUM(IF(Guidance_Method_for_APT='MBG',[Net Revenue for Guidance],IF(Guidance_Method_for_APT='DBG',[DBG Net Revenue for Guidance])))

  /

  SUM(IF(Guidance_Method_for_APT='MBG',[Revenue at Typical],IF(Guidance_Method_for_APT='DBG',[DBG Revenue at Typical]))

  )




Thank You

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Try this with complete statement with set analysis.

=(Sum({<Guidance_Method_for_APT={'MBG'}>} [Net Revenue for Guidance]) + Sum({<Guidance_Method_for_APT={'DBG'}>} [DBG Net Revenue for Guidance]))

  /

  (sum({<Guidance_Method_for_APT={'MBG'}>} [Revenue at Typical] ) + Sum({<Guidance_Method_for_APT={'DBG'}>} [DBG Revenue at Typical]))

Regards

Anand

View solution in original post

2 Replies
its_anandrjs
Champion III
Champion III

Try this with complete statement with set analysis.

=(Sum({<Guidance_Method_for_APT={'MBG'}>} [Net Revenue for Guidance]) + Sum({<Guidance_Method_for_APT={'DBG'}>} [DBG Net Revenue for Guidance]))

  /

  (sum({<Guidance_Method_for_APT={'MBG'}>} [Revenue at Typical] ) + Sum({<Guidance_Method_for_APT={'DBG'}>} [DBG Revenue at Typical]))

Regards

Anand

Anonymous
Not applicable

You can apply set analysis in this as following:

(Sum({<Guidance_Method_for_APT={'MBG'}>}[Net Revenue for Guidance])+

sum({<Guidance_Method_for_APT={'DBG'}>}[DBG Net Revenue for Guidance]))

/

(sum({<Guidance_Method_for_APT={'MBG'}>}[Revenue at Typical]+

sum({<Guidance_Method_for_APT={'DBG'}>}[DBG Revenue at Typical]))

Thanks,