Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajkumar
Creator
Creator

How to show all the value in denominator irrespective of dimension

Hi All,

I am restricting the dimension by top 5 . Ex, out of 10 stores  restricting 5.

In measure i want to show 5 stores / total stores.

Currently i am able to get  5 stores / 5 stores. If I do restriction in dimension.

Please advise me

 

 

 

 

9 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

how do you limit it to the top 5 stores 

in general 

sum(Sales)/sum(TOTAL Sales) should work 

Rajkumar
Creator
Creator
Author

if(aggr(rank(sum(sales)),store)<5 ,store) in dimension

Rajkumar
Creator
Creator
Author

Any help would be appreciated ...

tresesco
MVP
MVP

Did you try Sum(Total sales) as suggested above? Isn't that working?

Rajkumar
Creator
Creator
Author

I am using 100% chart .

1 st dimension is quarter 

2nd dimension is if(aggr(rank(sum(sales)),store)<5 ,store)

3 rd Measure is sum(total <quarter > sales)

When i am restricting top 5 store in dimension it showing 100 % of that 5 stores.

I want the actual  % of the store divided by total stores. 

Hope I make you understand ,Thank you

 

 

 

Anil_Babu_Samineni

please post some sample data set to work with you

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Rajkumar
Creator
Creator
Author

Please find the sample data.

Rajkumar
Creator
Creator
Author

Hi Anil, 

I have attached the sample excel file.

Prashant_Naik
Partner - Creator II
Partner - Creator II

Hi Raj,

i have taken Quarter in 1st dimension, only Store field in 2nd Dimension and Measures as Sum(Sales)/Sum(total <quarter> Sales)

and restricted the dimension to top 3 as your data set has 5 values.

here is the attached image of value that i got(Capture 1) and the same i validated in excel(Capture 2).

Regards,

Prashant