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

INDEX, substring, mid , trim ,left , right

Hi guys,

I need to represent TOTAL NO oF VIEWS for a WEBPAGE as dimension. Since the webpage name is a Http:// .................................................... 

type of string, it takes a lot of space on teh chart and does not display properly.

How can i use correct string function to display only the last part of the page link??

e.g if i have a page link as https://portal.abcd/strategy/pages/depot/abcd/page/home.aspx

and . https://portal.abcd/strategy/pages/depot/abcd/page/webcommunication.aspx

which i want to display as only Home

only as webCommunication respectively on my chart x axis.

Please let me know how a correct string function can be applied on the field Page during Load.

Thanks!

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this code

    

Load Page,mid(Page,Index(Page,'/',len(KeepChar(Page,'/')))+1,Len(Page)-Index(Page,'/',len(KeepChar(Page,'/')))-5) as ABC inline [
Page
https://portal.abcd/strategy/pages/depot/abcd/page/home.aspx
https://portal.abcd/strategy/pages/depot/abcd/page/webcommunication.aspx
];

Have a look at the attched example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this code

    

Load Page,mid(Page,Index(Page,'/',len(KeepChar(Page,'/')))+1,Len(Page)-Index(Page,'/',len(KeepChar(Page,'/')))-5) as ABC inline [
Page
https://portal.abcd/strategy/pages/depot/abcd/page/home.aspx
https://portal.abcd/strategy/pages/depot/abcd/page/webcommunication.aspx
];

Have a look at the attched example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Thanks  Kaushik.