Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Karim_Khan
Creator III
Creator III

how to convert fiscal Period ID 201506 into date,Month and Year

  Fiscal

KK
14 Replies
Karim_Khan
Creator III
Creator III
Author

yes

KK
Kushal_Chawda

Considering Aug is the Start of Fiscal month, you can do something like below

Transaction:

LOAD Distinct

    [Fiscal Period ID],

    Year(date#([Fiscal Period ID],'YYYYMM')) as FiscalYear,

num(month(date#([Fiscal Period ID],'YYYYMM'))) as FiscalMonthNum

FROM

Sample_data.xlsx

(ooxml, embedded labels, table is Sheet1);

Left Join

LOAD * Inline [

FiscalMonthNum,CalenderMonth, CaldenderMonthNum

1,Aug,8

2,Sep,9

3,OCt,10

4,Nov,11

5,Dec,12

6,Jan,1

7,Feb,2

8,Mar,3

9,Apr,4

10,May,5

11,Jun,6

12,Jul,7 ];

Final:

LOAD *,

monthname(Date#(CalenderYear&CalenderMonth,'YYYYMMM')) as CalenderMonthYear,

date(Date#(CalenderYear&CalenderMonth,'YYYYMMM'),'DD-MM-YYYY') as Date;

LOAD

FiscalYear,

FiscalMonthNum,

CalenderMonth,

[Fiscal Period ID],

if(CaldenderMonthNum>=8,FiscalYear-1,FiscalYear) as CalenderYear

Resident  Transaction;

DROP Table Transaction;

Karim_Khan
Creator III
Creator III
Author

Tnx a ton bro..

KK
Kushal_Chawda

Welcome bro.. glad that it was helpful

Karim_Khan
Creator III
Creator III
Author

Hi Team While am calculating the QTD on the basis of month selection data is calculating correctly for 1 month.But while selecting 2 and 3 month of the same quarter then data is not showing proper.Is there any way so that we can exclude the Month and Include the Quarter for addition of data values.

KK