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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sameer9585
Creator II
Creator II

Last 6 quarters

hi,

I required to get the barchart of previous 6 quarters from the selected quarter in qlik sense.

Below I provide the dataset of the related question

1 Solution

Accepted Solutions
Vegar
MVP
MVP

If calculating Quantity over ShipDate try something like this. It calculates quantity between your largest selected ShipDate and 6 quarters back.

SUM( {$<ShipDate={">=$(=dayname(quarterstart(MAX(ShipDate), -6))) <=$(=MAX(ShipDate))"}>}Quantity)

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

You will get a better response if you load the data into a QlikSense app and at build the basic barchart. Then, if you  are not sure how to continue, you can ask a specific question and you will get a useful response.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Vegar
MVP
MVP

If calculating Quantity over ShipDate try something like this. It calculates quantity between your largest selected ShipDate and 6 quarters back.

SUM( {$<ShipDate={">=$(=dayname(quarterstart(MAX(ShipDate), -6))) <=$(=MAX(ShipDate))"}>}Quantity)