Forum Discussion

FlorisvdPoel's avatar
FlorisvdPoel
New Contributor III
2 years ago

Primary and secondary axis align 0 point

Hi everybody, Below you can see a graph created for a client. A question coming from them is that they want to align the 0 points (highlighted) of both the primary (left) axis and the seconda...
  • FlorisvdPoel's avatar
    2 years ago

    Hi Ben, and others who are reading this,

    Found a solution based on inspiration I got from Ben's solution.

    What I did in the underlying cube view that feeds the data adapter feeding the graph is adding identical rows to the current cube view. The only difference with these rows is that they multiply the data from the original rows by -1. What you get is a reversed version of the original data. 

    Within the report, I added these as series and set their color to transparent. 

    This solution forces the 0 on both axes into the exact center, since the extremes are equal but inverted. Below the result: 

     

    This solution is also dynamic!

    BenThompson thanks for your help and inspiration.

    Floris