Forum Discussion
Percentage Differences Boggle
This doesn't strike me as being that difficult, but either because it's Monday or my brain isn't working well, I cannot seem to be able to figure out how to calculate a percentage difference!
My table has the following columns
Store location address, store city, store state, latitude, longitude, customer address, customer city, customer state, longitude, latitude, distance from store, and distance category. In regards to distance category, there are four: 0-3 Miles, 3-5 Miles, 5-10 Miles, and 10+ Miles. I have a measure that does a simple count and when I toss it into a column chart, I get the count for each category. What am I missing? It should be straightforward: category count divided by total count.
- Anonymous7 years ago
I had already been down that road. The solution was to add the order to the tool tips (minimum), then select it from the "More Options" on the visual itself.
8 Replies
- parry2kSuper User
Anonymous it is not very clear what you are trying to achieve and what is not working? Can you share sample data and expected results.
- AnonymousNot applicable
One measure with the axis being the distance category.
All I want to do is calculate the percentages of each column. I could create a measure for each category and then a percentage measure too, but that seems a bit tedious.
- parry2kSuper User
Anonymous add following measure to get %
% = DIVIDE( COUNT(Table[Distance Category]), CALCULATE( COUNT( Table[Distance Category] ), ALLSELECTED( Table[Distance Category] ) )
you can also have a measure for count and replace COUNT in above expression with your measure