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: 
Not applicable

Excel, scaling columns load statement

Goodday clever QlikView peoples,

Here is one for you, refer to Excel extract below:

RowNoClassification1Classification2Classification3Classification4Classification5
1Oracle Database ServicesAdministration
2Business Application ServicesSupportApplication Support by Third Party
3Service Support ServicesChange Management ServicesBusiness Application ServicesStandard ChangePre-approved
4SQL Database ServicesAutomated Alert
5SQL Database ServicesAutomated Alert
6SQL Database ServicesAutomated Alert
7SQL Database ServicesAutomated Alert
8Monitoring ServicesAutomated Alert ReactionServer ServicesData Base Services
9SQL Database ServicesAutomated Alert
10SQL Database ServicesDatabaseConfiguration

I'm looking to get the value where the classification ends. I.E

RowNo 1 final classification was Administration

RowNo 2 final classification was Application Support by Third Party

RowNo 3 final classification was Pre-approved

RowNo 4 final classification was Automated Alert

etc,etc

Your load statement would be highly appreciated

2 Replies
Gysbert_Wassenaar

LOAD

     RowNo,

     If(Len(Trim(Classification5)),Classification5,

          if(Len(Trim(Classification4)),Classification4,

               if(Len(Trim(Classification3)),Classification3,

                    if(Len(Trim(Classification2)),Classification2,Classification1 ) ) ) ) as Classification

FROM ...source... ;


talk is cheap, supply exceeds demand
maximiliano_vel
Partner - Creator III
Partner - Creator III

I'm sorry I don't understand, Gysbert approach is correct, here are the results

  

RowNoClassification
1Administration
2Application Support by Third Party
3Pre-approved
4Automated Alert
5Automated Alert
6Automated Alert
7Automated Alert
8Data Base Services
9Automated Alert
10Configuration

Isn't this what you need?