Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
swatitomar
Contributor III
Contributor III

Avg of above and current month in bar chart

Hi All,

Stuck in small point , want to show the avg of 2 month values in bar chart but for the first moth facing some issue and if I select some month den also facing little challenge .

Hopefully u given will help me out.

Selection in Appl.

FY Name
2015-16
2016-17

2016-18

Fiscal month
Apr  May Jun .........Dec Jan Feb Mar

Output

Ex Mar 2015-16 Delivery is 30

Fiscal Month Delivery

OUTPUT

(current +above)/2


Header 4

Apr10065(Mar-16+Apr-16)/2
May2060(Apr-16+may-16)/2
Jun5035(may-16+Jun-16)/2
Jul6055same as above.......

NOTE:

Facing issue in Ist row that is Apr in above table and

if some select specific month Ex May with 2016-17 then put comes incorrect..

We can do in Script also??

1 Solution

Accepted Solutions
sunny_talwar

May be this

Aggr(RangeAvg(Above(Sum({<[FY Year Name]>} Delivery), 0, 2)), [Fiscal YYYYMM])


Capture.PNG

View solution in original post

6 Replies
Anil_Babu_Samineni

Can you provide sample, We can do this Front end itself

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
swatitomar
Contributor III
Contributor III
Author

Hey i have attached the file , kindly check .

it may be help you.

thanks in advance

swatitomar
Contributor III
Contributor III
Author

Hi All,

Please find the Sample data.

swatitomar
Contributor III
Contributor III
Author

Team please share your input

Anil_Babu_Samineni

+ stalwar1

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

May be this

Aggr(RangeAvg(Above(Sum({<[FY Year Name]>} Delivery), 0, 2)), [Fiscal YYYYMM])


Capture.PNG