Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
which function do i need to use to achieve this
jan
feb
mar as Q4 2015
apr
may
jun as Q1 2016
July
aug
sep as Q2 2016
oct
nov
dec as Q3 2016
and actual/calendar year is 2015
current my expression is this which is not good
'Q'&ceil(MONTH(DATE)/3) AS QUATERS,
year(DATE) as YEAR
thanks
naveen
plz find my attached sample file
Sample qvw won't be much useful without the database files to reload. I will still try to work on another sample and see if you can copy the logic over to yours
yes i forgot,thanks
Here you go, try this:
SuppilerScore:
LOAD VENDOR_NAME,
ROLE,
date(date#(DATE_OF_REVIEW,'YYYY-MM-DD')) as DATE_OF_REVIEW ,
QM_SCORE,
CS_SCORE,
GENERAL_SCORE,
PROC_SCORE,
MANU_SCORE,
round(TOTAL_SCORE) as TOTAL_SCORE,
Dual('Q' & Ceil((Mod(Month(DATE_OF_REVIEW) - $(vFiscalYearStartMonth), 12)+1)/3),
Ceil((Mod(Month(DATE_OF_REVIEW) - $(vFiscalYearStartMonth), 12)+1)/3)) as QUATERS,
YearName(DATE_OF_REVIEW, 0, $(vFiscalYearStartMonth)) AS YEAR
FROM
[..\QVDS\SuppilerScore.qvd]
(qvd);
IF I NEED TO GET month then
Naveen not sure if you are asking me or Nitin? Did the above response work for you or not?
justr use month(DATE_OF_REVIEW)