Making X & Y Axes Scales Dependent

kitjosh1050

New Member
Joined
Mar 15, 2015
Messages
22
Hello All,

I am using PowerPivot V2 in Excel 2010.

I am trying to create a chart which compares performance for a certain measure against the overall dimension average. For each dimension, it should be displayed as a column while the overall is displayed as a line.

When I move the overall average to the secondary axis, the scale will shift. This is the intended purpose of the secondary axis, but in this case I need them to remain consistent.

I can change the scale manually, but the ideal is for the x-axis to auto-adjust and the y-axis scale to match it. Is there a way to do this? Ideally without VBA. And I'm curious for 2013 users, is there an alternate in that version?

Here is a picture of the ideal: https://drive.google.com/file/d/0B28JaEoX1COwcWk5LUZFYUY5NHc/view?usp=sharing

Thanks,
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi

This works with a regular chart and so maybe you can adapt it to work with the one you are generating from your Power Pivot.

Assuming a regular chart with the 2 series, the first one type column in the primary axis and the second one type line in the secondary axis,

I added 1 other series with just 1 point to the secondary axis. The value of the point is the maximum of the values in series in the primary axis (=MAX()). Without a marker you won't see the point.

Because in both axis the maximum point is the same both axes adjust automatically to the same scale (I'm assuming both initial series have the same minimum value of 0, or else add another point with the minimum).

Please try
 
Upvote 0
Hi pgc01, I used your idea but ended up creating a copy of the first measure called "Avg TAT Histo Acc to SO for Chart" and put it on the second axis. Now it works, but this is an awkward solution.

Maybe I'm missing something simple, but I can't seem to figure out a simple solution to calculating the max of another measure (which is an average). If you have any ideas that would be great.

My two formulas are:
Code:
[SIZE=1]Avg TAT Histo Acc to SO=AVERAGE('Fact TAT Histology'[TAT_ACCESSION_TO_SIGNOUT])[/SIZE]
[SIZE=1]Avg TAT Histo Acc to SO - Dim Total=IF(ISBLANK([Avg TAT Histo Acc to SO]),BLANK()
    ,CALCULATE([Avg TAT Histo Acc to SO]    ,ALLSELECTED('Fact TAT Histology')))
[/SIZE]

Here is a picture of my chart before and after hiding the "for Chart" measure. https://drive.google.com/open?id=0B28JaEoX1COwNWZiWjFhVGk2Yjg&authuser=0

I do really wish we could use Excel 2013. We have the license, there are just other applications that are not compatable.
 
Upvote 0
I can't seem to figure out a simple solution to calculating the max of another measure

Generally that is :
=MAXX(SomeTable, [SomeExpr])

Say...
=MAXX(VALUES(Calendar[Year]), [Avg Sales])
is going to eval the Avg Sales for each Year, and return the MAX one.
 
Upvote 0
Thanks scottsen. I kept trying different MAXX formulas but was never using the right table expression for my case. This helped.
 
Upvote 0

Forum statistics

Threads
1,224,084
Messages
6,176,270
Members
452,718
Latest member
Nyxs_Inquisitor

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top