
Creator
2024-05-31
12:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Find average from earliest FY year to last year FY year ( excluding current FY Year)
Hi there,
I have a table as shown below, and I would like to calculate the average by dimension starting from the beginning of the earliest financial year to the last completed financial year (excluding the current financial year). An example is provided below.
I would greatly appreciate your assistance with this.
Thank you!
Product Faults | FY20 | FY21 | FY22 | FY23 | 3 Year Avg. (excl FY23) |
Desktop | 10 | 20 | 17 | 1 | 16 |
Laptop | 45 | 29 | 18 | 11 | 31 |
Phones | 76 | 70 | 29 | 14 | 58 |
Labels (7)
Labels
- Subscribe by Topic:
-
Data Load Editor
-
dimension
-
expression
-
General Question
-
Qlik Sense
-
Set Analysis
-
Visualization
1 Solution
Accepted Solutions

Creator
2024-07-24
03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
table:
CrossTable(financial_year,data,1)
load * inline [
product,FY20,FY21,FY22,FY23
desktop,10,20,17,1
laptab,45,29,18,11
phones,76,70,29,14
];
NoConcatenate
table2:
load *,
Date(Date#(MakeDate(20&Right(financial_year,2)),'DD/MM/YYYY'),'YYYY') as year ;
load *
resident table;
drop table table;
round(sum(aggr(sum({<data=e({<year={"$(=max(year))"}>})>}data),product))
/
aggr(count(distinct{<financial_year=e({<year={"$(=max(year))"}>})>}financial_year),product))
375 Views
3 Replies

Creator III
2024-07-24
12:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
396 Views

Creator
2024-07-24
03:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
table:
CrossTable(financial_year,data,1)
load * inline [
product,FY20,FY21,FY22,FY23
desktop,10,20,17,1
laptab,45,29,18,11
phones,76,70,29,14
];
NoConcatenate
table2:
load *,
Date(Date#(MakeDate(20&Right(financial_year,2)),'DD/MM/YYYY'),'YYYY') as year ;
load *
resident table;
drop table table;
round(sum(aggr(sum({<data=e({<year={"$(=max(year))"}>})>}data),product))
/
aggr(count(distinct{<financial_year=e({<year={"$(=max(year))"}>})>}financial_year),product))
376 Views

Creator
2024-07-25
05:32 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the help.
360 Views
