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: 
orital81
Partner - Creator III
Partner - Creator III

Percentage and Value in a 2 Dim Chart

Hi, I have a 2 Dim Bar Chart (MO# and Reason Code) where I would like to show % and Value.

The % should be Sum(Hours) aggregated by MO# and Reason Code devided by Sum(Hours) Aggregated by MO#

untitled.JPG

I am using the expression  

Sum(Hours)/Aggr(Sum(Hours),MO#) But it seem to work only in certain cases

Please advice:

Which calculation should I use

How can I show both % and Value in the same Chart (I tried to set Righ and Left in the axes, didn't word) i

Attached the QVW

Thanks in advance

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try =Sum(Hours)/sum(TOTAL<MO#> Hours)

     But in a bar chart 2 dimension and 2 expression will not work.

     You must remove one dimension or one Expression.

Regards,

Kaushik Solanki

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

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try =Sum(Hours)/sum(TOTAL<MO#> Hours)

     But in a bar chart 2 dimension and 2 expression will not work.

     You must remove one dimension or one Expression.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
orital81
Partner - Creator III
Partner - Creator III
Author

Great! Thanks a lot Kaushik