Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Code Error

Dear All,

Please check below code its not working for me


please find the Notepad

could some one help me to solve this Error

Best Regards,

Niranjan

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello, Niru Niri.

Please, take a look on the attached QVW. I think it may show you how to solve your problem. I'm going to attach the same file to your other posts about this issue too.

Hope it helps.

View solution in original post

6 Replies
its_anandrjs

What error you get and it seems no error in the code but try with below code

Source:

LOAD Building,

     [Jan Actual Dollars],

     [Feb Actual Dollars],

     [Mar Actual Dollars],

     [Apr Actual Dollars],

     [May Actual Dollars],

     [Jun Actual Dollars],

     [Jul Actual Dollars],

     [Aug Actual Dollars],

     [Sep Actual Dollars],

     [Oct Actual Dollars],

     [Nov Actual Dollars],

     [Dec Actual Dollars],

     [Jan Actual SQF],

     [Feb Actual SQF],

     [Mar Actual SQF],

     [Apr Actual SQF],

     [May Actual SQF],

     [Jun Actual SQF],

     [Jul Actual SQF],

     [Aug Actual SQF],

     [Sep Actual SQF],

     [Oct Actual SQF],

     [Nov Actual SQF],

     [Dec Actual SQF]

FROM

(ooxml, embedded labels, table is [Data ]);

Table:

NoConcatenate

load

left(Building,2) as m,

SubField(Building, ' ', 2) as v,

'SQF' as type

resident Source

where wildmatch(Building, '*SQF*');

Concatenate (Table)

load

left(Building,2) as m,

mid(Building, 5,2) as m2,

SubField(Building, ' ', 3) as v,

'Dollars' as type

resident Source

where wildmatch(Building, '*Dollars*');

DROP Table Source;

NavinReddy
Creator II
Creator II
Author

Hi Anand Chouhan,

I atteched excel sheet in that sheet there is no Month field

i want to create month field

if i select month (jan,feb,march,apr..........) it will come

Please help me to do this

Regards,

Niranjan

NavinReddy
Creator II
Creator II
Author

Hi Anand Chouhan,

Any idea....

Best Regards,

Niranjan

SergeyMak
Partner Ambassador
Partner Ambassador

Please share your files. Because there is only a spreadsheet with a table.

But I see in discussion that probably there were other files

Regards,
Sergey
NavinReddy
Creator II
Creator II
Author

Hi Sergey Makushinsky,

I atteched excel in that excel sheet no month filed

how can i create month field using(jan,feb,mar........)Fields

that what my issue

Best Regards,

Niranjan

Anonymous
Not applicable

Hello, Niru Niri.

Please, take a look on the attached QVW. I think it may show you how to solve your problem. I'm going to attach the same file to your other posts about this issue too.

Hope it helps.