Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is the Inv date in Date table and in Invoices table are similar?
And if possible can u attach the file with minium data ..
Regards,
Ajay
Yes they are simular because the date table is generated in qlikview through following script.:
Date_src:
LOAD
$(S) + rowno() - 1 asDateID
AUTOGENERATE
NumOfDays;
//Build the date dimension
Date:
LOAD
DateID,
DateID
as InvDate,
DateID
as DelvDate,
date
(DateID,'DD.MM.YYYY') as FULLDate,
day
(DateID) as Day,
week
(DateID)as Week,
weekday
(DateID + 2) AS Weekday,
month
(DateID) as Month,
year
(DateID)&'/'&Month(DateID) as MonthYear,
year
(DateID)&if(len(num(month(DateID)))=1, '0'&num(month(DateID)) , num(month(DateID))) as MonthYearNum,
'Q'
& ceil(month(DateID) / 3) AS Quarter,
year
(DateID) as Year,
month
(DateID) & ' - ' & year(DateID) as Period,
// Year flags
inyear(DateID, Today(), 0) * -1 AS CY,
// Year-to-date flags
inyeartodate(DateID, Today(), 0) * -1 AS CYTD,
// Quarter flags
inquarter(DateID, Today(), 0) * -1 AS CQ,
// Quarter-to-date flags
inquartertodate(DateID, Today(), 0) * -1 AS CQTD,
// Month flags
inmonth(DateID, Today(), 0) * -1 AS CM,
inmonth
(DateID, Today(), -1) * -1 AS PM,
Year
(DateID) & '- ' & Right('0'&num(Month(DateID)),2) asRollingMonth
RESIDENT
Date_src;
Yes they are simular because the date table is generated in qlikview through following script.:
Date_src:
LOAD
$(S) + rowno() - 1 asDateID
AUTOGENERATE
NumOfDays;
//Build the date dimension
Date:
LOAD
DateID,
DateID
as InvDate,
DateID
as DelvDate,
date
(DateID,'DD.MM.YYYY') as FULLDate,
day
(DateID) as Day,
week
(DateID)as Week,
weekday
(DateID + 2) AS Weekday,
month
(DateID) as Month,
year
(DateID)&'/'&Month(DateID) as MonthYear,
year
(DateID)&if(len(num(month(DateID)))=1, '0'&num(month(DateID)) , num(month(DateID))) as MonthYearNum,
'Q'
& ceil(month(DateID) / 3) AS Quarter,
year
(DateID) as Year,
month
(DateID) & ' - ' & year(DateID) as Period,
// Year flags
inyear(DateID, Today(), 0) * -1 AS CY,
// Year-to-date flags
inyeartodate(DateID, Today(), 0) * -1 AS CYTD,
// Quarter flags
inquarter(DateID, Today(), 0) * -1 AS CQ,
// Quarter-to-date flags
inquartertodate(DateID, Today(), 0) * -1 AS CQTD,
// Month flags
inmonth(DateID, Today(), 0) * -1 AS CM,
inmonth
(DateID, Today(), -1) * -1 AS PM,
Year
(DateID) & '- ' & Right('0'&num(Month(DateID)),2) asRollingMonth
RESIDENT
Date_src;
Hi,
Plz attach the sample data file then it will be easy ...........
I can't attach a file because of very confidential data.
Hi,
I am attaching the file please find the attached and go through the script ,in the earlier scenario circular loop is there now i elminated that loop check whether the data what u r getting is appropriate or not.
Rgds,
Ajay
The loop is gone but my link through item also.
I still need to have that connection because when I select one item I want to see invoices and receptions for that item.