
Contributor II
2023-11-07
12:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compared to a reference year
Hello,
I would like to know how to compare a value of a year compared to a reference year. The reference year is 2000
I create a Line chart.
- Dimension: colDate.autoCalendar.Year
- Measure: comparison with the reference year
I added the code below in Measure but I get 0 for each years.
(
(
Sum(colValue) - Sum({<[colDate.autoCalendar.Year] = {"2000"}>} colValue)
) / Sum({<[colDate.autoCalendar.Year] = {"2000"}>} colValue)
) * 100
570 Views
1 Solution
Accepted Solutions

Employee
2023-11-07
02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try something like this:
( ( Sum(colValue) - Sum(Total {<[colDate.autoCalendar.Year] = {"2000"}>} colValue))
/
Sum(Total {<[colDate.autoCalendar.Year] = {"2000"}>} traf_aer_pax)) * 100
2 Replies

Employee
2023-11-07
02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try something like this:
( ( Sum(colValue) - Sum(Total {<[colDate.autoCalendar.Year] = {"2000"}>} colValue))
/
Sum(Total {<[colDate.autoCalendar.Year] = {"2000"}>} traf_aer_pax)) * 100

Contributor II
2023-11-07
07:21 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, thank for your help.
536 Views
