Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
mhmmd_srf
Creator II
Creator II

Total Value / Individual Value

Hi All,

I have one requirement like :

Percent Sum = Total Sales / Individual Sales.

for the 1st row it would be: 622779.66 *100 / 11020269.20

It should be 5.65 %, however it is coming like 0.60 %.

Could anyone please suggest on this.

I am attaching my app.

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

8 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Do something like this:

=Sum(Sales)/Sum(TOTAL Sales)

mhmmd_srf
Creator II
Creator II
Author

Hi Bacius,

This expression is already there. Still not working.

Please help.

Thanks,

Sarif

antoniotiman
Master III
Master III

Maybe

tresesco
MVP
MVP

Null values in dimension are causing the problem. Try expression like:

=sum(ContarctSales)

/ sum(total if (not IsNull(DIM_ITEM.GroupMajorDescription), ContarctSales))


Capture.PNG

mhmmd_srf
Creator II
Creator II
Author

It is working..thanks..

mhmmd_srf
Creator II
Creator II
Author

This is woeking..thanks..

But could you please let me know hoe this property works.

Thanks,

Sarif

antoniotiman
Master III
Master III

This works for Straight Table (Not Pivot)

Provide Rate of Row / Total Column

Regards,

Antonio

antoniotiman
Master III
Master III

Indeed You need only

Sum(Sales) and Check Relative.