Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Restrict and expression to a dimensional Value

I would like to restrict and expression to a dimansional value. How can i do that.

Ex: I have Products and Amounts.

I would like to know, how much % is product is contributing?

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

for this you have to use accumulation like

sum(Amount)/Sum(Total Amount)

and in number tab Fixed to 2 for this dimension and make sure Check on Show %

hope it helps

View solution in original post

7 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     All you need to do is create a chart with dimension as Product

     Expression as Sum(Amount)

     % Contribution expression as Sum(Amount) /Sum(Total Amount)

     Go to number tab and Click the % contribution expression label and click on Show in percentage.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Did not get that, can you please send me an example

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You share your example and I will tell you how to get the output.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

P1 - 100

P2 - 60

P3 - 40

the answer i am looking at is as :

%p1 - 50, %p2 - 30%,  p3 - 20%.

Not applicable
Author

Contribution : Net TurnOver - Total Cost

Contribution% : Contribution / Net TurnOver

regards-bika

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Here is the application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
er_mohit
Master II
Master II

for this you have to use accumulation like

sum(Amount)/Sum(Total Amount)

and in number tab Fixed to 2 for this dimension and make sure Check on Show %

hope it helps