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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Logic

Hi ALl,

Please find the attachment of the qvw file .

Here i have bar chart which has the dimesnion  defectsummaryreportperiod  this is statring form NOV ..

The requirement is like it should show the 13 months from the selected date from Orderdate and the date format is MM-DD-YYYY.

say for example now i have selcted 11-11-2017.....that means and if you look at the bar chart it is showing 13 months charts...starting from NOV 2016 to NOV 2017..

but if i select October it will show 12 months... the starting will still be NOv..

Please help me on this ...If i slect in future Dec from Orderdate then the bar chart should start from Dec... so that it will be 13 months ..

How can ia chive this ...

Thanks in advance

1 Solution

Accepted Solutions
stabben23
Partner - Master
Partner - Master

use this Expression and use no accumulation.

RangeSum(Above( Sum(DSRunningOpenCount),0,Rowno()))

View solution in original post

22 Replies
amarnath_krishn
Contributor III
Contributor III

Currently the data is available only from Nov-2016 and ends by Oct-2017.

I would suggest to create a variable to identify the start range for the rolling 13-month and use that variable in all the expressions in set analysis to limit the data.

smilingjohn
Specialist
Specialist
Author

hi Amarnath..

Can you please help me with this ..

It will be really great..

Say for example consider it for 6 months ......

Thanks in advance

stabben23
Partner - Master
Partner - Master

You could try to add these set analysis into Your Expressions or simular:

Sum ({<DSLoadDate={">=$(=date(addmonths(DSLoadDate,-13),'MMM-YYYY'))<=$(=max(date(addmonths(DSLoadDate,0)),'MMM-YYYY'))"}>}DSCreateCount)

amarnath_krishn
Contributor III
Contributor III

In Expresssions:

Sum ({<DefectSummaryReportPeriod={">$(vChartRangeStart) <=$(vChartRangeEnd)"}>}DSCreateCount)

where variable - vChartRangeStart=Date(AddMonths(DSLoadDate,-6),'MMM-YYYY')

vChartRangeEnd=Date(AddMonths(DSLoadDate,0),'MMM-YYYY')

smilingjohn
Specialist
Specialist
Author

Hi

Amarnath this is not working ..

I followed the steps you suggested ..

I dont know where i am going wrong ...

smilingjohn
Specialist
Specialist
Author

Hi Staffon thanks for the reply

this is not working ..i followed what you suggested ..

amarnath_krishn
Contributor III
Contributor III

Please share the updated qvw; let me have a look.

stabben23
Partner - Master
Partner - Master

Ok, than you have to find out what not is working, because it Works for me.

smilingjohn
Specialist
Specialist
Author

Hi Amarnath .

Please find the attachment of the qvw file where i have uodated the variable as per your suggestions.

Thanks