Find 'column ratio' per value in another column (date bucket)

Jake Litchfield September 4, 2024

In Atlassian Analytics I'm trying to create a stacked bar graph which shows a set of values as a proportion of the total for the bar.

I've actually managed to create this view by adjusting some of the chart settings, but when you hover over the chart, the values shown remain the raw sum, as opposed to the proportion which would be preferable.

Screenshot 2024-09-05 at 12.54.50 PM.png

I assume in order to achieve this I need to get the result table to a state where the values represent the 'column ratio' per my date buckets, but I haven't been able to figure out how to calculate that with the formulas/tools provided.

Any suggestions would be much appreciated!

2 answers

1 accepted

1 vote
Answer accepted
Inder Singh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 6, 2024

@Jake Litchfield : Assuming your query output columns are named as shown below:

Screenshot 2024-09-06 at 7.52.51 AM.png

 

You can use window function to calculate the proportion. You can apply this formula:

"Count of issues"*1.0/(sum("Count of issues") over (partition by "Quarter of Created at"))

Let us know if this works

Cheers,

Inder

Jake Litchfield September 8, 2024

Thank you @Inder Singh, that's worked perfectly!

1 vote
Jessie Turpin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 6, 2024

In addition to Inder's solution, we have a feature request open for the ability to have the values displayed in the tooltip be formatted as a percentage as well. I'd highly recommend that you watch and vote for the feature request! 

Jake Litchfield September 8, 2024

Thanks for the heads up @Jessie Turpin, I have just voted for that very useful feature request!

Like Jessie Turpin likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events