Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Maheshwar
Contributor II
Contributor II

Loading excel sheet columns and their values dynmaically into qlikview

Hi All, i have requirement, i am getting two excel sheets in which one excel sheet i.e sheet 1 is about condition sheet and another excel sheet i.e sheet 2 is about data. i need output two columns from these two excel sheets i.e Id and Key in qlikview.

sheet 1 data : 

IdCountryProductRegion
1All  
2Business markets
3 retail 
4medicalHR 
5Schooltelecom 

sheet 2 data:

CountryProductRegionKey
Business marketsieoeo
medicaladkjfkdueikeiqwbxhd
SchoolHROpenViewklisbx
qiwuriertelecomqieuriqwanswer
qweuriewieuriewruueueiellkoiuu
jeuruerieewrieraerewrewwsedfftt
ueieotprrieoepnkjfkdsnmbhhkk

 

Note: the user will enter the values in sheet 1 so every time the columns and their values will change.

Requirement : from sheet 1, condition :

if Country=Business and Region = Markets then output should be the corresponding values of Column Id from sheet 1 and Key from Sheet 2 i.e from Condition sheet, 

IdCountryProductRegion
2Business markets
    

after applying the above condition ,we get the result from Data sheet 2 is

CountryProductRegionKey
Business marketsieoeo

 So i need output :

IdKey
2ieoeo

 

 Like this i need to get the output by using these two excel sheets and one more thing here is "every time all columns and their corresponding values will change in sheet1" means the user will enter the values in sheet 1 ,so i want output which i mentioned above in qvw from these two excel sheets.

3 Replies
rubenmarin

Hi it looks easy for id 2, just a join or mapping but... what's the expected output for id's 4 or 5?
Qrishna
Master
Master

You should make a composite Key.See attached.

Whenever there is a match of the composite keys from both the tables, After refresh of the App, you see your desired output.

1.PNG

Maheshwar
Contributor II
Contributor II
Author

Hi Krishna,
Thanks for your reply but here i mentioned already, the columns in condition sheet will change because every time the columns is not constant so in this case, your script will not work . i want dynamically loading columns from condition sheet with condition and the result should give according to this columns.