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: 
venkatasuresh
Creator
Creator

Problem with pivot table measurement sub total

Hi Exports,

Im getting sum of subtotal wrong in pivot table FC AVG COGS column, here im getting total -0.14 its wrong count its suppose to be -64.86 -right one, Please find the below pivot table for your ref.

BMC MarketPosting PeriodCY AVG Sales to thirdsFC AVG Sales to thirdsCY AVG COGSFC AVG COGSnumeratordenominatornum/den
DACH127.0927,092.3213.22-13.22-20,324.961,536.90-13.22464081
DACH228.0328,034.5213.71-13.71-20,133.711,468.67-13.70881123
DACH328.4628,458.5212.77-12.77-27,253.172,133.52-12.77382571
DACH425.6725,671.1612.04-12.04-19,274.001,600.98-12.03890858
DACH527.9927,988.6412.96-12.96-20,750.481,600.51-12.96494983
DACH625.2842.2811.97-0.02-2,411.64126,276.00-0.01909818
DACH721.5242.949.84-0.02-1,880.7492,365.00-0.02036208
DACH826.9944.2112.52-0.02-2,312.70112,326.00-0.020589193
DACH9-44.75--0.02-2,783.65134,661.00-0.020671519
DACH10-52.06--0.02-3,095.36127,397.00-0.024296936
DACH11-57.37--0.03-3,897.66149,098.00-0.02614158
DACH12-48.05--0.02-3,350.60151,396.00-0.02213136
DACHTotal26.1026,098.1812.21-0.14-127,468.68901,859.57-0.141339827
Total26.1026,098.1812.21-0.14-127,468.68901,859.57

                                                                                                    -127,468.68/901,859.57=-64.86 right answer

                                                                                                                                          -0.14 now - error value

expression:

(Sum({<[FISCPER]={'>=$(VMinFCPeriod)'}>}[Cost of Sales FC]) + Sum({<[FISCPER]={'<$(VMinFCPeriod)'}>}[Cost of sales.CS_TRN_GC]/1000))/

(sum({<[FISCPER]={'>=$(VMinFCPeriod)'}>}[Quantity])+sum({<[FISCPER]={'<$(VMinFCPeriod)'}>}[Sales to thirds./BIC/NQUANTITY_ORIGIN]/1000))

the above expression im using to generate FC AVG COGS values


along with for your reference i have created numerator denominator fields you can do the division with numerator/denominator(-127,468.68/901,859.57=-64.86 right answer)

can you any one help to resolve this issue.

0 Replies