Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

database set up

Hello

I have the following excel table

          

#CountryHospital nameSwitch on HLM SatisfactionCalibrate venous occluder SatisfactionSwitch on level SatisfactionRecirculate CPL SatisfactionSwitch on HLM times per caseCalibrate venous occluder times per caseSwitch on level times per caseRecirculate CPL times per case
1DEGiessen, pediatric33131111
2DEKarlsruhe1 231 11
3UKGOSH, London, pediatric3 131 11

I would like to re-organize it (through the script) like the following:

     

#CountryHospital nameFeaturesSatisfaction ratesTimes per case
1DEGiessen, pediatricSwitch on HLM31
1DEGiessen, pediatricCalibrate venous occluder31
1DEGiessen, pediatricSwitch on level 11
1DEGiessen, pediatricRecirculate CPL31
2DEKarlsruheSwitch on HLM11
2DEKarlsruheCalibrate venous occluder
2DEKarlsruheSwitch on level 21
2DEKarlsruheRecirculate CPL31
3UKGOSH, London, pediatricSwitch on HLM31
3UKGOSH, London, pediatricCalibrate venous occluder
3UKGOSH, London, pediatricSwitch on level 11
3UKGOSH, London, pediatricRecirculate CPL31

please note that names contained into the "Features" column, are a bit different compared to the first table showed above. I would like them to be without "satisfaction" or "times per case" portion of the name.

How should I do? do I need to create a cross table? how should I do it?

I am pretty new with qlik sense

thank you for your help

Jessica

6 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Hi Jessica,

this can be achieved using a Crosstable:

CrossTable(Features, [Satisfaction Rates], 3)
LOAD #,
Country,
[Hospital name],
[Switch on HLM Satisfaction],
[Calibrate venous occluder Satisfaction],
[Switch on level Satisfaction],
[Recirculate CPL Satisfaction],
[Switch on HLM times per case],
[Calibrate venous occluder times per case],
[Switch on level times per case],
[Recirculate CPL times per case]
FROM
[https://community.qlik.com/thread/257387]
(
html, codepage is 1252, embedded labels, table is @1
);

Not applicable
Author

thank you for your support

unfortunately the script you suggested doesn't fix my problem.

Now I am trying with joint tables, but no solutions found yet.

thank you

Anil_Babu_Samineni

Can you share this data in Excel please

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
marcus_malinow
Partner - Specialist III
Partner - Specialist III

ok, what about this:

tmp:
CrossTable(Features, [Satisfaction Rates], 3)
LOAD #,
Country,
[Hospital name],
[Switch on HLM Satisfaction],
[Calibrate venous occluder Satisfaction],
[Switch on level Satisfaction],
[Recirculate CPL Satisfaction]

FROM
[https://community.qlik.com/thread/257387]
(
html, codepage is 1252, embedded labels, table is @1
);

Data:
NOCONCATENATE
Load #,
Country,
[Hospital name],
Left(Features, index(Features, ' Satisfaction') - 1) as Features,
[Satisfaction Rates]
RESIDENT tmp;

DROP TABLE tmp;


tmp:
CrossTable(Features, [Times Per Case], 3)
LOAD #,
Country,
[Hospital name],
[Switch on HLM times per case],
[Calibrate venous occluder times per case],
[Switch on level times per case],
[Recirculate CPL times per case]
FROM
[https://community.qlik.com/thread/257387]
(
html, codepage is 1252, embedded labels, table is @1
);


LEFT JOIN (Data)
Load #,
Country,
[Hospital name],
Left(Features, index(Features, ' times per case') - 1) as Features,
[Times Per Case]
RESIDENT tmp
;

DROP TABLE tmp;

Not applicable
Author

Great!!!

it works...

thank you

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Glad to hear it - could you mark the answer correct?

Thanks