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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
akuttler
Creator
Creator

CONCAT ALPHA PRE-FIX STING IN DATA LOAD

Hello,

I am pulling simiar data form several different sources, I a field "patient id' which is not unique across the different sources and I would like to insert an alpha prefix to distinguish the data source:

So if my load scirpt is :

LOAD

    Date(Floor("Date of Service")) as "Date",

    PATIENTID as MRN,

    ItemCode AS CPT,

    Provider as RenderingPhysician,

    Quantity AS UNITS,

    PracticeName,

    CPT_CATEGORY

SQL SELECT *

FROM DataMart.dbo."DERM02Custom Charge Report"

WHERE PATIENTID is numerical.

Can I use concat or some other function to insert "DERM02" in front of each patientid?

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

You may change the script line to

'DERM02'&PATIENTID as MRN

View solution in original post

2 Replies
nagaiank
Specialist III
Specialist III

You may change the script line to

'DERM02'&PATIENTID as MRN

akuttler
Creator
Creator
Author

Thanks, I thought I already tried that but it worked.