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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

group by

Hi All

Here is my problem

When there are multiple markets within one application the market share calculations are not grouping by market. Instead they are using the total of all markets in the denominator of the % calculation. Any help will be appreciated.

1 Solution

Accepted Solutions
Not applicable
Author

Could you show us your expression?

I'm guessing you are doing something like:

Sum(Sales)/Sum(TOTAL Sales)


If so, you want:

Sum(Sales)/Sum(TOTAL <Market> Sales)


View solution in original post

4 Replies
Not applicable
Author

Could you show us your expression?

I'm guessing you are doing something like:

Sum(Sales)/Sum(TOTAL Sales)


If so, you want:

Sum(Sales)/Sum(TOTAL <Market> Sales)


Not applicable
Author

I don't have expression handy. But, as soon as I get to work tomorrow I'll share the expression.

Not applicable
Author

(sum(PRJTD_NRX_CNT)/sum(All PRJTD_NRX_CNT)) This is what I am doing. What I want it to do is respect the current selection of market in the denominator. I think ALL word is the problem here.

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Yes, you are right in your assessment - keyword ALL ignores all the selections and always returns the summary for the whole document.

As an alternative, symbol TOTAL will ignore Chart Dimensions, but respect User Selections. In addition, if Market is one of your Chart Dimensions, you can use TOTAL <Market> to limit your summary only to the relevant Market.

cheers,

Ask me about Qlik Sense Expert Class!