There are cases when I need to display two metrics on one single graph; the matter gets complicated if the two have very different values, such as an absolute number and a percentage, or—generally speaking—when the values of one metric fall in a range different from the values of the other. We have seen that most of the times the numbers are displayed as series on the Y axis; so we have a minimum number and a maximum number on the left vertical margin of the graph (Y1). If the second metric has minimum and maximum values that do not fall into the first metric range, we can create a second Y axis and have the new minimum and maximum values displayed on the right margin of the chart (Y2). Let's see it with a practical example. We want to picture the sales amount from the resellers and the real product margin that each category of products has scored. We know from the previous chapters that we lost money on Bikes
…
Create a new report with the following objects:
When you run it in the grid view you'll see that the numbers are different from each other: the first column ranges from 521K to 66M while the other has a negative minimum value.
In Grid View, select View | Graph View menu:
In MicroStrategy, the first metric is the one that is used to generate the left Y labels; in our example from 0 to 70M. The second column is then scaled to fit into this range. Clearly, smaller numbers are likely to disappear. So we use a dual axis graph, with Y1 labels on the left and Y2 labels on the right, and the two sets of columns proportional to their own scales. In this particular chart, there is an added complication: the negative Bikes
value. We need space below zero to create the Product Margin
columns, so we choose another type of dual axis graph, where we have two zero baselines, generating actually two separate bar charts one above the other.
Try this:
30
and click on Apply.By playing with these two settings you can give more visibility to one metric and try to draw attention to the most important numbers; see the following image: