Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
harleen_singh
Creator III
Creator III

pivot table not showing total

Hello i have a data like this

ID
Amount in Euro
rate
116003
225004
323005

i am using this formulat to caculate

=sum(AMOUNTCUR)/Rate

it is showing the correct sum with the rate divided by this But its not showing the Total when i select partial sum??

what may be the problem??

thanks

Lavi

9 Replies
Anonymous
Not applicable

hi did u try

=sum(AMOUNTCUR / Rate )

sivarajs
Specialist II
Specialist II

Its giving actually, may be check in number format

Sivaraj S

harleen_singh
Creator III
Creator III
Author

Sivaraj,

               i have checked it with number format but its the same.

alfasierra

I have already tried it with sum(AMOUNTCUR / Rate ) but it shows correct values and sum too but

for one column its showing wrong value. the value is double the amount should i get.

i don't know why

sivarajs
Specialist II
Specialist II

Can u attach sample

harleen_singh
Creator III
Creator III
Author

Sivaraj,

               can you see the sample file? and see the top value of column Depreciation Euro . All values are divided except that top value. It should be divided by 2 in this case

(Select year 2010 and AssetID FA00000010)

thanks

Anonymous
Not applicable

hi

try this

=if(TRANSTYPE=3 or TRANSTYPE=4,sum(AMOUNTCUR)/Rate)

sivarajs
Specialist II
Specialist II

Hi Lavi,

You meant to say that for asset other than FA00000010 you are not getting Depreciation Euro

am i right??

Sivaraj S

harleen_singh
Creator III
Creator III
Author

@sivaraj,

                         no for the asset FA00000010 i am getting all the values of Depreciation Euro correctly except the one value at the top. (only top one value of  Depreciation Euro has problem

thanks

Lavi

sivarajs
Specialist II
Specialist II

Hi lavi,

Change your expression like

=sum(if(TRANSTYPE=3 or TRANSTYPE=4 ,(AMOUNTCUR)))/Rate

See the attached file