Qlik Community


Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

WE ARE LISTENING! New Navigation for Qlik Community, Sept. 26: TELL ME MORE

Scramble Sensitive Data In Qlik Sense

Showing results for 
Search instead for 
Did you mean: 
Digital Support
Digital Support

Scramble Sensitive Data In Qlik Sense


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.

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


  • Qlik Sense Enterprise on Windows, all versions
  • Qlik Sense Enterprise SaaS
  • Qlik Sense Business




  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;
    CALL Scramble('<name of metadatafile>.xlsx');
  11. Reload the duplicated app and review the result. 



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;
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:
‎2020-12-09 09:15 AM
Updated by: