Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qliklearnervir
Creator
Creator

total issue in pivot !!!

Hi,

I am working on one expression where i am not able to find out right solution.

i wan to show the table with :

 

SegmentMixMix %
A100.333333
B100.333333
C100.333333
Total30

this is easily achievable by  Mix% = SUM(TOTAL  {<Segment>} Mix).

But the problem here is if we need to change the dimension from segment to Market or so on as per conditional dimension selection . this static formula will not work.

i want the dynamic formula where if i change the dimension tan total should change as per dimension subtotal.

Like  Mix%=SUM(TOTAL {<Dynamic Dimension>} Mix )...

Please suggest.

Thanks.

Virendra

4 Replies
PrashantSangle

create variable to store your dynamic dimension

and use that variable in your

Mix%=SUM(TOTAL {<$(variableName)>} Mix )


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 🙂
qliklearnervir
Creator
Creator
Author

It is not working ...

still showing total values for entire year

sasiparupudi1
Master III
Master III

Aggr(sum(TOTAL<$(=vDynamicDims)> Mix),Dim1)

qliklearnervir
Creator
Creator
Author

I have to add the current year and previous year selection also.

for 2 columns ..

for current year its working file   Sum ( Actual) / Sum (Total < $(Dim1)> Actual) ....

but for previous year ...its not working....