Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Start chart from April

Hi all,

How can I have a chart with Month as Dimension start from April instead of January? Since this is the UK tax year, it starts from April. Thanks.

1 Solution

Accepted Solutions
rajat2392
Partner - Creator III
Partner - Creator III

See the demo app in attachment, I think it will solve your problem.

View solution in original post

12 Replies
alexandros17
Partner - Champion III
Partner - Champion III

if you have month in dimension (e.g.: yyyymm -> 201401 for jabuary 2014) you may write as modified dimension:

if(myMonth >= 201403, muMonth, null()) and exclude null values

senpradip007
Specialist III
Specialist III

try like this:

SET MonthNames='Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec;Jan;Feb;Mar';

in Main tab of ypur script.

yduval75
Partner - Creator III
Partner - Creator III

in your expression :

Sum ({<Month={>=4}>} Data)

rustyfishbones
Master II
Master II

Hi,

You could try changing the SET in the Main Tab like

2014-04-10_1102.png

Not applicable

In your model generate Monthnum for each month

Ex:

Map1:

Load * Inline [

Month, MonthNum

Apr, 1

May, 2

Jun, 3

Jul, 4

,

,

,

Mar, 12

];

YourTable:

Load *,

Applymap('Map1',Month) as MonthNum

From Yoursource;

After getting this column from your script do this,

Chart Dimenssion(Month) -> Sort expression ->=Only({1}MonthNum)

Not applicable

Update:

In UI:

Use this in Chart Dimension(Month) sort expression

=Wildmatch(Month,'Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec','Jan','Feb','Mar')

sifatnabil
Specialist
Specialist
Author

Thanks, this works half way - The chart starts from April 2013, but after December 2013, it shows the sum for Jan 2013 instead of Jan 2014, thus showing a misleading figure. Is there a way to have the chart go from April 2013, May 2013.......Dec 2013, Jan 2014, Feb 2014, Mar 2014?


My graph looks like this after using your method (and full accumulation turned on):

YTDchart.PNG.png

I'm basically trying to get the chart to look like this, but with it starting from April:

YTDchart2.PNG.png

Not applicable

In the expression use filter for the year like

=Sum({<Year={$(=Max(FinancialYear))}>}Sales) or

=Sum({<Year={'$(=Max(FinancialYear))'}>}Sales)  or

vMaxFinancialYear = Max(FinancialYear)    //Create variable

=Sum({<Year={$(vMaxFinancialYear)}>}Sales)

Hope it will work..

senpradip007
Specialist III
Specialist III

Create a Calendar for your application as Apr is the starting month and make the year - 1 for Jan, Feb and Mar.

Eg.

Normal Calendar      Transform_Calendar

Jan 2014                         Jan 2013

Feb 2014                         Feb 2013

Mar 2014                         Mar 2013

Apr 2014                         Apr 2014

.

.

Dec 2014                         Dec 2014

Jan 2015                         Jan 2014

Feb 2015                         Feb 2014

Mar 2015                         Mar 2014