Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a fact in QV

Hi Experts,

I have data in below manner :

MonthHighMedium Low
1766914
2878871
3598242
412539
5977839
6418299
7731498
8746865
9268155
10944887
11873915
12643944

I need this to convert into a fact in below manner

MonthTypeVaues
1High76
2High87
3High59
4High12
5High97
6High41
7High73
8High74
9High26
10High94
11High87
12High64
1Medium69
2Medium88
3Medium82
4Medium5
5Medium78
6Medium82
7Medium14
8Medium68
9Medium81
10Medium48
11Medium39
12Medium39
1Low14
2Low71
3Low42
4Low39
5Low39
6Low99
7Low98
8Low65
9Low55
10Low87
11Low15
12Low44

How to achieve this in QV through Script ?

Thanks,

Gauraw

1 Solution

Accepted Solutions
Not applicable
Author

Hi kumar ,

Try This

K:

LOAD * Inline [

Month ,High , Medium , Low

1 ,76 ,69 ,14

2 ,87 ,88 ,71
]
;
kt:

crosstable (Type, Values)
load
*
Resident k;

It Works ...

Regards,

Koti

View solution in original post

4 Replies
Not applicable
Author

Hi kumar ,

Try This

K:

LOAD * Inline [

Month ,High , Medium , Low

1 ,76 ,69 ,14

2 ,87 ,88 ,71
]
;
kt:

crosstable (Type, Values)
load
*
Resident k;

It Works ...

Regards,

Koti

udit_kumar_sana
Creator II
Creator II

Hi,

Try out with below scripty & remove synthtetic Key

Directory;

LOAD Month,

    
High,

    
Medium,

    
Low

FROM

[New Microsoft Office Excel Worksheet.xlsx]

(
ooxml, embedded labels, table is Sheet1);



Directory;

CrossTable(High, Data)

LOAD Month,

    
High,

    
Medium,

    
Low

FROM

[New Microsoft Office Excel Worksheet.xlsx]

(
ooxml, embedded labels, table is Sheet1);



Thnaks & Regards,

Udit

Not applicable
Author

Hi Kumar,

copy your data in to an excel and change the excel file path in the attached qlikview file to accomplish your task.

Regards,

Abhishek.

Not applicable
Author

Hi koti,

post that we can delete the k; using drop table k , such that only required information will be there in qlikview file.

Regards,

abhishek.