0

Monthly percentage of annual value

Hello,

I have created a line chart showing the monthly distribution of reported sales. I tried to add a tip tool that shows the percentage of the month's value relative to the annual value.

To do this, I divide the data point with periods - current member by periods - parent. It then calculates a percentage value for me, but I end up with a total of 400% because our data model also includes quarters, so it divides the monthly value by the total value for the quarter. Can anyone help me set the formula correctly?

Thank you

4 replies

null
    • Lead Consultant Advanced Analytics
    • Michael_Daun
    • 2 days ago
    • Reported - view

    , I do not know if my solution will work with your data source, but for me it looks like a classical contextual calculation.

    So, I created a simmilar grid as yours...

    ...and then via right-click choose "Create measure" ... "Percent of Total"

    ...et voilà: 

    Hope this helps!
    Micha

    • Lead Consultant Advanced Analytics
    • Michael_Daun
    • 2 days ago
    • Reported - view

    , I forgot one thing: Once you have created this key figure as shown above, a new Business Logic element will be available below your measures - you may need to activate the corresponding view by clicking on the Fx button.

    This element will automatically be placed in your Values drop zone which would give you a second column with %Total Sales (cf. the last screenshot from my first answer 🙈). When you move or copy it to the Tooltip drop zone the percentage will be shown when hovering over the Sales value which was your actual requirement!

    • Josephine
    • 2 days ago
    • Reported - view

    Hello 

    Thank you for your reply. However, when I right-click, only the options “math functions” and “hierarchical functions” appear. Will the option “cumulative functions” only appear after updating to the latest version, or do I need to change something on my end?

    Thank you!

      • Lead Consultant Advanced Analytics
      • Michael_Daun
      • yesterday
      • Reported - view

      , judging from your screenshot you are already using a quite new version because I can see the new context menu. So, perhaps there are other reasons that the "Cumulative Function" do not show up. I have also converted my “Perioden” dimension into a time hierarchy as in your example - but it still works for me.

      I guess, you need a better consultant than me - or , any ideas?  

      P.S.: Just found a good article about "% of Total". Four years old, btw, so your version should not be the problem.
      https://community.pyramidanalytics.com/t/m1hxagh/how-to-apply-cumulative-function-percent-of-total-of-rowscolumns-in-charts

Content aside

  • yesterdayLast active
  • 4Replies
  • 13Views
  • 2 Following