Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Here is an easy approach to extracting the data model from a Qlik Sense (QVF) or QlikView (QVW) file. The example documented uses Qlik Sense Desktop, if you are using QlikView then please click here.
Most of the setup can be managed using variables from the front sheet of the application. However there are two steps that will require the user to update some things manually as indicated clearly in the steps below.
Why would you use or need this kind of technique?
In a production environment you may find use of the output table script elements without the variables as they can be useful in load processes when transformed QVDs can be re-used by other applications. However, there are many times where you need to create something quickly for an ad-hoc piece of work or as a demonstration to show a customer with amended data to make it more relevant (changing product, department names etc). This approach can also be useful when working offline on the front end or application tuning where you do not want to deal with all of the complications of the ETL process.
Setup Requirements:
Please note the following instructions are also included in the dashboard itself in case you forget where it came from.
Step 1 - Update the 'QlikSenseApps' data connection in the data load editor window
Step 2 - Update the file name of the Qlik Sense or QlikView application from which you wish to extract data.
e.g. Executive Dashboard.qvf
Step 3 - Create a folder location as a subfolder of the data connection folder and edit 'vDataDir' variable.
Step 4 - Select the type of output you require.
Step 5 - Save the application and then Reload using the button to the left.
There is no need to open the Data Manager or Data Load Editor windows to reload the application. Use this extension button instead.
Step 6 - Check you folder to see your CSV or QVD files (one for each table in your data model)
Hi Frank,
It's working at the data model level (binary load) so the filters will not apply... Interesting idea for an API based extension though.
Cheers
Rich
You can also extract data from Qlik Sense using the ODBC driver that (Qlik Elite Partner) IPC Global has created. You use SQL commands to extract data from the tables in the data model and also from table objects in the UI.
Thanks, Richard! It works successfully.
I'd just recommend you to edit the post, as it wasn't clear that a given app should be used.
Just add "Download and install the attached app" in the "Setup Requirements" section.
Regards,
Rodrigo Hjort
Thank you very much! We had a qvf that didn't have the connection information saved and this was the only way to get the data out. I wish Qlik Sense would put this in the enterprise version by default.
Can you please explain how to write SQL script from qvw to extract data from tables.
Ex: open application-->Ctrl+e-->take script in that till from-->from xyz.qvd--> serach qvd in folders and replace with SQL.
Using that script need to run and get data...once data is loaded..extract it from table