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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combining mid & index

Hi

I am extracting data from SQL Server getting Distinct Fund name

LOAD Distinct("Fund_Name");
SQL SELECT "Fund_Name"
FROM "FI_Dashboard".dbo."VR_Data"
WHERE "FUND_NAME" NOT IN ('NO_OF_FUNDS')
order by "Fund_Name";

=mid(Fund_Name, 1, index(Fund_Name, ' ')-1)

Using mid & index, I am getting the value from the Fund Name

ie., Axis Short Term Fund --> 'Axis'

But I am getting a blank field on Top (image attached).  How to avoid this blank column.

Mukundan

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

May be this:

If(Len(Trim(mid(Fund_Name, 1, index(Fund_Name, ' ')-1))) > 0, mid(Fund_Name, 1, index(Fund_Name, ' ')-1))