Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mohan2391
Creator II
Creator II

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

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

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,