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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
PASHA
Contributor
Contributor

PERCENTAGE ON SUM

Dear Team,

   Hi Greetings to all ,

  I want to do one (a-b)/b formula in my dashboard as a sample.

A   formula is    sum({$<SALEYEAR={"2019"}>}NETAMT)

B  formula is   Sum({$<SALEYEAR={2018}>}NETAMT)  now hoa can i do A-B/B with this

 

Thanks.

 

 

 

  

Labels (1)
2 Solutions

Accepted Solutions
agigliotti

maybe this:
(
sum( {< SALEYEAR = {'2019'} >} NETAMT )
-
sum( {< SALEYEAR = {'2018'} >} NETAMT )
)
/
sum( {< SALEYEAR = {'2018'} >} NETAMT )

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

pradosh_thakur
Master II
Master II

(sum({$<SALEYEAR={2019}>}NETAMT) - Sum({$<SALEYEAR={2018}>}NETAMT) )
/ Sum({$<SALEYEAR={2018}>}NETAMT)

couple of things to note
1: it's not a good practice to hard code values
2: DOUBLE QUOTES are used as search string, don't use if not necessary.
Learning never stops.

View solution in original post

2 Replies
agigliotti

maybe this:
(
sum( {< SALEYEAR = {'2019'} >} NETAMT )
-
sum( {< SALEYEAR = {'2018'} >} NETAMT )
)
/
sum( {< SALEYEAR = {'2018'} >} NETAMT )

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
pradosh_thakur
Master II
Master II

(sum({$<SALEYEAR={2019}>}NETAMT) - Sum({$<SALEYEAR={2018}>}NETAMT) )
/ Sum({$<SALEYEAR={2018}>}NETAMT)

couple of things to note
1: it's not a good practice to hard code values
2: DOUBLE QUOTES are used as search string, don't use if not necessary.
Learning never stops.