Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

polovev1
New Contributor

Share (%) of parent total

Hello everyone!

I'm new to Qlik Sense, and I faced a simple case which I can't resolve myself of using help or forum.

I have normalized table showing [Sales] of each [Brand] over the time [Year_Quarter]. [Brands] are gripped into markets by additional column [Market]:

Data_source.jpg

The all I need is to create a Measure [Market Share] to show % share of each brand on its parent market total (see the yellow cells at the screenshot bellow).

Desired _Result.jpg

I can easy create it in Excel or Power Query, but I unable to make it right in Qlik Sense.

The statements I'he already tried:

  1. sum(Sales)/Sum({$<Brand=>} Sales)
  2. sum(Sales)/sum({TOTAL<Brand> * $<Market>} Sales)
  3. sum(Sales)/sum({$<[Brand]= {*}>} Sales)
  4. some more variants that I have not marked...

Can anybody help me with this?

1 Solution

Accepted Solutions
MVP
MVP

Re: Share (%) of parent total

May be this

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

2 Replies
MVP
MVP

Re: Share (%) of parent total

May be this

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

polovev1
New Contributor

Re: Share (%) of parent total

Thank you!

Very simple and powerful.

Logic is clear..

Community Browser