Reporting counting number of occurances

Hi


I never really got on with pivot tables and charts in Excel and it seems to have carried over to Confluence

I need to create some pretty basic reports.

I have the following

<ac:structured-macro ac:name="report-table">  <ac:parameter ac:name="injected">true</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:name="grouping-reporter">
      <ac:parameter ac:name="as">Compliance Status</ac:parameter>
      <ac:parameter ac:name="">data:evidence-compliance-status</ac:parameter>
      <ac:rich-text-body>
        <ac:structured-macro ac:name="local-reporter">
          <ac:parameter ac:name="source">Control Evidence</ac:parameter>
          <ac:parameter ac:name="">page:children</ac:parameter>
          <ac:rich-text-body>
            <p> </p>
          </ac:rich-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:name="report-column">
      <ac:parameter ac:name="title">Compliance Status</ac:parameter>
      <ac:parameter ac:name="width">120px</ac:parameter>
      <ac:rich-text-body>
        <p>%grouped:Compliance Status%</p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:name="report-column">
      <ac:parameter ac:name="title">Number</ac:parameter>
      <ac:rich-text-body>
        <p>%Compliance Status &gt; count%</p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <ac:structured-macro ac:name="report-empty">
      <ac:rich-text-body>
        <ac:structured-macro ac:name="column">
          <ac:parameter ac:name="width">270px</ac:parameter>
          <ac:rich-text-body>
            <ac:structured-macro ac:name="hinchpanel">
              <ac:parameter ac:name="color">red</ac:parameter>
              <ac:parameter ac:name="width">90</ac:parameter>
              <ac:rich-text-body>
                <p>No Evidence yet</p>
              </ac:rich-text-body>
            </ac:structured-macro>
          </ac:rich-text-body>
        </ac:structured-macro>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>


Basically a report table that does a lookup across a bunch of pages and counts the number of compliance statuses for each value.

So i get a table with 2 columns the first one gives me each instance of compliance status. What i now need to do is count how many for the number column.

I'm guessing I've either missed off some form of grouping stat or the line

%Compliance Status > count%

is somewhat wrong.

For the life of me I'm stumped

Steve

2 answers

Hi Steve,

Not sure Reporting add-on can build a pivot table. But you can wrap it with Pivot Table macro from Table Filter and Charts add-on, it is compatible with reporting macros.

Thanks for the response Andrey. Unfortunately the organisation I am working for are not currently purchasing additional addons.

To add to this Service Rocket are taking down their old support forum, so historic 'answers' will go.

Steve

 

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

903 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you