Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
paolojolly
Creator
Creator

sales average in pivot

Hi, I'm pretty new to Qlikview and I need help to create a pivot chat with sales data

I have a document in which I can select a date.

A pivot chart for each year for the period from beginning of the year to selected date extract sales data.

Immagine.png

I ask help to see if the formula that I use as dimension in the chart is the most correct and ask help for display a horizontal reference line with the sales average

Can someone help me?

Thank you very much

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like attached?

I used InYearToDate() function to filter the fact data within the expression.

I do get slightly different results than shown in your chart, because I calculate the respective year to date aggregates, not year to end of selected month.

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe like attached?

I used InYearToDate() function to filter the fact data within the expression.

I do get slightly different results than shown in your chart, because I calculate the respective year to date aggregates, not year to end of selected month.

paolojolly
Creator
Creator
Author

Thanks, this is what I need