Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All
How to calculate Market share in Qlik sense ?
Thanks in adv
Vikas
try,
num(Sum({$<Company ={'BPC'}>} [VolKL])/$(vBPCLVolKL),'##.#'& '%')
else
num(Sum({$<Company ={'BPC'}>} [VolKL])/$(=vBPCLVolKL),'##.#'& '%')
Where Variable is vBPCLVolKL =Sum( Total <CalendarDay> {$<COMP ={'BPCL'}>} [VolKL])
Sum(TOTAL {$<Company ={'BPC'}>} [VolKL]),'##.#'& '%')
But, You are storing variable as different. Try this?
vBPCLVolKL = Sum(TOTAL {$<Company ={'BPC'}>} [VolKL]),'##.#'& '%')
Created Variable LET vTotalSale='Sum(TOTAL {1<COMP ={"BPCL"}>} [VolKL])';
used this in charts so that if we need to select particular customer then this will not show you 100% market share but exact what he has,
Thanks Guys for your reply
Vikas
Great, You can close this thread by flag your response as option