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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

FieldValue

Hi all,

I have a data like below attached Excel  with input and  output required.  i need to get one extr column

Labels (1)
16 Replies
sunny_talwar

Create a RowNo() field to show distinct values. or if you add your quantity field which made it distinct, the row would show up

sunny_talwar

Here you are

Table:

LOAD RowNo() as RowNum,

  Date,

    Product,

    Type,

    ProNo.,

    [Prod Ref.]

FROM

[SAMPLE-JEW.xlsx]

(ooxml, embedded labels, table is Original)

Where Len(Trim(Date)) > 0;

TempTable:

LOAD If(Len(Trim(Date)) = 0, Peek('RowNum'), RangeSum(Peek('RowNum'), 1)) as RowNum,

  Date,

    Trim(Product) as Productname

FROM

[SAMPLE-JEW.xlsx]

(ooxml, embedded labels, table is Original);

Left Join (Table)

LOAD RowNum,

  Productname

Resident TempTable

Where Len(Trim(Date)) = 0;

DROP Table TempTable;

FinalTable:

LOAD RowNo() as Key,

  *

Resident Table;

DROP Table Table;

Capture.PNG

Chanty4u
MVP
MVP
Author

thank you sunny its clear now.  tommrow i will check with original data and will close

thanks

sunny_talwar

Sounds good

MarcoWedel

Hi,

maybe the File Wizard Transformation function might help as well:

QlikCommunity_Thread_236235_Pic1.JPG

QlikCommunity_Thread_236235_Pic2.JPG

QlikCommunity_Thread_236235_Pic3.JPG

table1:

LOAD RecNo() as ID,

    Date(Date) as Date,

    Product,

    Type,

    ProNo.,

    [Prod Ref.],

    Productname

FROM [https://community.qlik.com/servlet/JiveServlet/download/1141516-249521/SAMPLE-JEW.xlsx] (ooxml, embedded labels, table is Original, filters(

ColXtr(2, RowCnd(CellValue, 1, StrCnd(null)), 0),

ColXtr(2, RowCnd(CellValue, 1, StrCnd(null, not)), 0),

Remove(Col, Pos(Top, 2)),

Top(5, 'Productname'),

Replace(1, top, StrCnd(null)),

Replace(2, top, StrCnd(null)),

Replace(3, top, StrCnd(null)),

Replace(4, top, StrCnd(null)),

Replace(6, top, StrCnd(null)),

Remove(Row, RowCnd(CellValue, 5, StrCnd(null)))

));

(besides the erroneously filled ProNo. and Prod Ref. columns in this example ... )

regards

Marco

Chanty4u
MVP
MVP
Author

Excellent Macro   Nice

MarcoWedel

glad you liked it.

please close your thread if your question is answered:

Qlik Community Tip: Marking Replies as Correct or Helpful

thanks

regards

Marco