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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Holding percentage from the total

Dear Friends,

As per the above, If I am to get the holding percentage of individual items from the total, the simple formula such as below works but if the measure is a s results of a multiple criterians like below, how this needs to be applied to get the expected out put. The measure looks like below

SUM({<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE)

If the above is the measure, how this is combined in to sum (Total) function.

SUM(SUM({<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE))/SUM(TOTAL SUM({<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE))


The above function seems to have a syntax error.


Thanks


Neville


1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Try this?

SUM({<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE)

/

SUM(TOTAL {<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE)

View solution in original post

2 Replies
vishsaggi
Champion III
Champion III

Try this?

SUM({<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE)

/

SUM(TOTAL {<PRD_CODE={'MC','TC','HH','PP','M4'},ACCOUNT_CODE={'7156','5526','2255','4525'}>}C_BALANCE)

nevilledhamsiri
Specialist
Specialist
Author

Thanks Vishvarath,

This is alright

Neville