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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date

Hi ALl

Iam attaching my qlikview file , U can see that i have a staright table which has the  expression name as YTD ABP ,In my excel data i have the values only for 2015 April , but in my dashboard it is shwowing the values for 2014 also .

Can some one help me over this

1 Solution

Accepted Solutions
smilingjohn
Specialist
Specialist

HI Wrestler u need to concatenate year and month

Try this

Year(Date)&'|'&Month(Date)&'|'&DivCode&'|'&[Sales Office Dec]&'|'& [Sales Office] as ABPKEY

Hope this works

View solution in original post

5 Replies
robert_mika
Master III
Master III

Could you share your data/file?

MK_QSL
MVP
MVP

There is something wrong in your load script..

Create a list box of FiscalMonth, FiscalYear and Booking Sales Value ABP.. which will give you idea about what is wrong in your scrip..

Not applicable
Author

HI Manish thanks for your reply  , i tried all the option but could not resolve the problem ,

Can u plz tell me iam using this script for temp calendar is this correct .

SET vFiscalYearStartMonth = 4;

LET vStartDate = Num(YearStart(Today(),-2));

LET vEndDate = Num(YearEnd(Today()));

FiscalCalendar:

LOAD

*,

Dual('Q' & Ceil(FiscalMonth/3), Ceil(FiscalMonth/3)) AS FiscalQuarter, // Fiscal Calendar Quarter

Dual(Text(Date(MonthEnd(Date), 'MMM')), FiscalMonth) AS FiscalMonthName; // Fiscal Calendar Month Name

LOAD

*,

Year(Date) AS Year, // Standard Calendar Year

Month(Date) AS Month, // Standard Calendar Month

Date(MonthEnd(Date), 'MMM') AS MonthName,  // Standard Calendar Month Name

Dual('Q' & Ceil(Month(Date)/3), Ceil(Month(Date)/3)) AS Quarter,  // Standard Calendar Quarter

Mod(Month(Date) - $(vFiscalYearStartMonth), 12)+1 AS FiscalMonth,  // Fiscal  Month

Right(YearName(Date,0,$(vFiscalYearStartMonth)),4)as FiscalYear;

//YearName(Date, 0, $(vFiscalYearStartMonth)) AS FiscalYear;  // Fiscal Year

LOAD

Date($(vStartDate) + RangeSum(Peek('RowNum'), 1) - 1) AS Date,

RangeSum(Peek('RowNum'), 1) AS RowNum

AutoGenerate vEndDate - vStartDate + 1;

smilingjohn
Specialist
Specialist

HI Wrestler u need to concatenate year and month

Try this

Year(Date)&'|'&Month(Date)&'|'&DivCode&'|'&[Sales Office Dec]&'|'& [Sales Office] as ABPKEY

Hope this works

Roop
Specialist
Specialist

You need:

in ABP:

     month(Date)&'|'& year(Date) &'|'&DivCOde&'|'&[Sales Office Desc]&'|'&[Sales Office] as Link

in Billing:

     month(Date)&'|'& year(Date) &'|'&DivCOde&'|'&[Sales Office Desc]&'|'&[Sales Office] as Link

This will add the year into the link and it should function correctly