Skip to main content
Announcements
Qlik Community Office Hours, March 20th. Former Talend Community users, ask your questions live. SIGN UP

Scramble Sensitive Data In Qlik Sense Enterprise for Windows

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Scramble Sensitive Data In Qlik Sense Enterprise for Windows

Last Update:

Nov 8, 2022 10:37:08 AM

Updated By:

Daniele_Purrone

Created date:

Jun 27, 2016 11:58:43 PM

Attachments

Qlik Sense data files (.QVF) may contain sensitive organizational data.  As such, even though Qlik Technical Support has a very strict Non-Disclosure Agreement, it may be desired to  scrambled specific data before submitting apps Qlik Sense support for investigation.

Unfortunately, data scrambling is not available as a feature in the current Qlik Sense product.

This document shares a method and related scripts on how to scramble sensitive data in Qlik Sense app, until the feature is built into Qlik Sense Enterprise for Windows. For scrambling in Qlik Cloud, check this article.

To access the examples, visit the community post or download it from here


Environment:

  • Qlik Sense Enterprise on Windows, all versions

 

Resolution:


Steps:

  1. If working via the Qlik Sense server's Hub, duplicate the Qlik Sense app (qvf. file) to have data scrambled/replaced.
  2. Make a file copy of the duplicated App which will have the data scrambled. You can export a copy via the Qlik Management Console (QMC) > Apps if performing this task on the Qlik Sense server.
  3. Store it into a location that can be reached by a Folder Data Connection as the binary data source.
  4. Review the app and work out the list of fields (and related tables) that you want to scramble. Replace the contents in metadata file sample scramble.xlsx with list.
  5. Save the modified Excel file into the same location of binary data source mentioned in step 3. Please make sure to NOT change the column title or sheet name in Excel file;
  6. Download attached scramble.qvs file and also save it into the same location of binary data source;
  7. On the duplicated app which needs to have the scrambled data, remove or comment out the entire load script.
  8. Create a Folder Data Connection named "Binary" that points to the binary load source location;
  9. If working on the Qlik Sense server Hub, the system will automatically name the connection as "Binary (<usernname>)". Make sure this connection gets renamed to only "Binary" under QMC > Data Connections. Otherwise, the system added username string will cause an error when running the script later.
  10. Paste the following script into the app script editor before any other script statement including the SET variable statements (which should have been removed or commented out). Substitute with the file names stored in the Binary data source location accordingly.
    Binary lib://Binary/<filename>.qvf;
     
    $(Include=lib://Binary/scramble.qvs);
     
    CALL Scramble('<name of metadatafile>.xlsx');
  11. Reload the duplicated app and review the result. 

ScrambleData.gif

 

Other consideration:

If Qlik Sense has "Legacy Mode" enabled, above steps 1~6 can be skipped and use file path directly in the load script in step 7, for example code as below: 

Binary C:\Users\xxx\abc\<filename>.qvf;
 
$(Include=C:\Users\xxx\abc\scramble.qvs);
 
CALL Scramble('C:\Users\xxx\abc\<name of metadatafile>.xlsx');


NOTE: Sometime sensitive data such as organization name will also be in metadata's table or field name. User will need to manually call rename() function in load script to remove it;
 

Related Content:

 

Labels (2)
Version history
Last update:
‎2022-11-08 10:37 AM
Updated by: