
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wrong Percentage in stacked bar chart
I like to see the share of category A in category B, For example category A is Sex( Male,Female ) and Category B is opinion (good,bad).
i did the following :
I have added Sex and Opinion columns as Dimensions
in Expression Tab :
Expression One:
1
(Bar)
Expression Two:
COUNT(DISTINCT People)/Count(TOTAL <Sex> DISTINCT People)
(Values On Data Point)
The problem is the sum of each stack is more than 100% . what's the reason?
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Arman,
Can you please add data table related to this query.
Thanks & Regards
Prince Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can share some of the table...but is it because of the data or there is something wrong with my query?
How is it possible to have aggregate percentage more than 100%?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
here is the sample file


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi arman,
just reverse your expression.
make your denominator as numerator and vice versa.
Regards
KC
KC

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Buddy,
But i'm not sure i got what you said. Based on sample data i want to see the share of Remark Column (Active&Deactive) in the ValuableAtAll Column (Yes/No) .
So i added ValuableAtAll and Remark As the dimension. then i
COUNT(DISTINCT SubID)/Count(TOTAL<ValuableAtall> DISTINCT SubID)
in the expression


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi arman,
try this:
Count(TOTAL<ValuableAtall> DISTINCT SubID)/COUNT(DISTINCT SubID)
Regards
KC
KC

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
see what happened :


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Arman,
try this,hope it works
in Dimension:
Valuableatall
exp1:
Count({<REMARK={'Active'}>} SUB_ID)/Count(SUB_ID)
exp2:
Count({<REMARK={'Deactive'}>} SUB_ID)/Count( SUB_ID)
Regards
KC
KC


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
PFA.
Regards
KC
KC

- « Previous Replies
-
- 1
- 2
- Next Replies »