# Trend comparison for previous year - Current backlog average age

**URL:** <https://community.eazybi.com/t/trend-comparison-for-previous-year-current-backlog-average-age/14751>\
**Category:** Questions & Answers\
**Tags:** markdown, calculatedmembers, mdx\
**Created:** [January 15, 2024, 11:23pm UTC](https://community.eazybi.com/t/trend-comparison-for-previous-year-current-backlog-average-age/14751 "2024-01-15T23:23:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Horne](https://community.eazybi.com/user_avatar/community.eazybi.com/david_horne/32/11453_2.png) [@David\_Horne](https://community.eazybi.com/u/David_Horne)\
**Post date:** [January 15, 2024, 11:23pm UTC](https://community.eazybi.com/t/trend-comparison-for-previous-year-current-backlog-average-age/14751/1 "2024-01-15T23:23:50Z")

</div>

Hi team,

Firstly, Happy New Year.

I am attempting to build a report that illustrates a comparison between the Current backlog average age today and the same time last year i.e. is it up ⬆ or down ⬇.

I am using the current calculation for issues resolved change, but I don’t think it shows the average age…

```auto
CASE WHEN NOT IsEmpty([measures].[Issues resolved])
Then
CASE WHEN CatchExceprtion(
[Measures].[Issues Resolved] -
( [Measures].[Issues Resolved],
[Time]. CurrentHeirarchyMember. PrevMember)
) > 0
THEN
",i class='far fa arrow-up' style='color:green'> </i>"
ELSE
"<i class='far fa arrow-down' style='color:red'> </i>"
END
END

```

and I use Markdown for the formatting.

Any advice on where I am going wrong please?

Cheers

Dave

---

<div class="post-metadata">

**Author:** ![zane.baranovska](https://community.eazybi.com/user_avatar/community.eazybi.com/zane.baranovska/32/7209_2.png) [@zane.baranovska](https://community.eazybi.com/u/zane.baranovska)\
**Post date:** [January 23, 2024, 3:35pm UTC](https://community.eazybi.com/t/trend-comparison-for-previous-year-current-backlog-average-age/14751/2 "2024-01-23T15:35:42Z")

</div>

Hi Dave,

You should choose the measure **“Average resolution days”** to see the average resolution time for resolved issues in each period.

Then, **add standard calculation** to see the same measure value one year ago. Click on “Average resolution days” column header **→ Add calculated → Time ago → year ago**.  
More details in the documentation: [Add standard calculations based on a selected measure](https://docs.eazybi.com/eazybi/analyze-and-visualize/create-reports#Createreports-Addstandardcalculationsbasedonaselectedmeasure).

Now yuo have two options.

1. Use **conditional cell formatting** to color rows based on both values. You might want to choose the option with the custom formula to compare column values. More details here: [Conditional cell formatting](https://docs.eazybi.com/eazybi/analyze-and-visualize/create-reports/conditional-cell-formatting#Conditionalcellformatting-Usingcustomformula)

2. An alternative solution is to create a **new calculated measure** that would compare data in both columns and show arrows up or down based on both values.

Both solutions in the report might look like in the picture below.

 ![Average resolution days compared to previous year](https://community.eazybi.com/uploads/default/original/2X/7/732516f90e1a4fa72ee0282a9f1a32836f0ef48e.png)

See also the Community post on measure formatting and icon representation:

> [@Measure formatting (markdown and custom)](https://community.eazybi.com/t/measure-formatting-markdown-and-custom/5157):
>
> In this article, I will show a few tips and tricks on how it is possible to format the measures. In eazyBI, there are two interesting ways on how to [format measures](https://docs.eazybi.com/eazybi/analyze-and-visualize/calculated-measures-and-members/calculated-measures#Calculatedmeasures-Formatting) to get a different appearance. First is our newest formatting option, Text-\>Markdown (available on Cloud and starting from the eazyBI version 6.1), and second is a Custom format with which you can change the formatting of the measure. Markdown You can use [Markdown](http://en.wikipedia.org/wiki/Markdown) formatting to show a rich text (bold, italic) or…

Best,  
Zane [Support@eazyBI.com](mailto:Support@eazyBI.com)

---

<div class="post-metadata">

**Author:** ![David\_Horne](https://community.eazybi.com/user_avatar/community.eazybi.com/david_horne/32/11453_2.png) [@David\_Horne](https://community.eazybi.com/u/David_Horne)\
**Post date:** [January 31, 2024, 8:03pm UTC](https://community.eazybi.com/t/trend-comparison-for-previous-year-current-backlog-average-age/14751/3 "2024-01-31T20:03:38Z")

</div>

Thanks @zane.baranovska , I’ll have a paly with this today.

Appreciate your advice.

Cheers

Dave

Update: It worked a charm… thanks again for your advice. 🙂 👍 😀
