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: 
Not applicable

Calculated expression in pivot doesn't give me totals

I have created a pivot table with detail, ref as the lowest level. The problem is that my 'Price' field is a calculated expression which multiplies price % * Adjusted base. When I show detail in the pivot, the amount shows but no total. when i go a level up nothing shows. How can I show the total for calculated expression so even when I click on 2360 only and hide ref column, my detail will stay in place?

Thanks

detail.PNG.png

24 Replies
lironbaram
Partner - Master III
Partner - Master III

hi have a look at the attach file

i used aggr functions

for price %  i used -

sum(aggr(([Price %]),ref,[Product Line ID]))

and for total price -

sum(aggr(sum([Adj Base])*(Sum (T12JuneYTD2014_DET)/SUM(TOTAL <[ref]> T12JuneYTD2014_DET) )*[Price %],ref,[Product Line ID]))

check it out

PrashantSangle

Hi,

Check attached file.

might help you

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
ecolomer
Master II
Master II

Can you see my proposal?

Not applicable
Author

Hi Liron -

THIS IS IT!!!! It works!!! Thank you so much. Brilliant!!!

Thank you

Not applicable
Author

Enrique -

Yes this solution works. Thank you so much. I got it resolved.

Thank you,

Petra