We use cookies essential for this site to function well. Please click to help
us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy.
I am facing challenge in connecting QlikSense/QlikView seamlessly like we do with Tableau. Can any has worked on this, please help me?
one way is is to export output in R or Python to database then bring data to QlikView/QlikSense but I am looking for seamless integration like we have the same for R and Tableau.
There’s another way you can integrate Python & Qlikview. You could make COM modules (i.e. windows libraries) and import them in Qlikview via macros. Here’s a link with the example.
Disclaimer: I haven’t worked on Qlikview, but I’m an avid googler
First create your Python script and let us say you save it with a file script.py
Next, open the Qlikview Script Editor and paste the following code:
Set vPythonPath = ‘C:\Users\Kunal\Canopy\User\python.exe’;
Set vPythonFile = ‘C:\Users\Kunal\Desktop\script.py’;
EXECUTE $(vPythonPath) $(vPythonFile)
Next, you can reload this script and overrun the security warning in case it pops up.
Let me know, if this does not work. You can integrate R scripts in similar fashion
If you want to import some data from these Python / R scripts, you can first save them in a csv file and them import them (again using the same script editor in QlikView).
I have created a small program for evenodd as below and saved it as evenorodd.py
Below is the python program
import time
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("Number is Even")
else:
print("Number is Odd")
time.sleep(5)
after that I have created a QlikView file using my QlikView Desktop and before that follow the steps mentioned in the first link I pasted above
Goto to EditScript of QlikView file and add the below lines and reload the qvw file
Set vPath = 'python.exe'; #Mention full path if environment variable is not set
Let vFile = chr(34)&'D:\My Data\Python\Programs\evenorodd.py'&chr(34);
EXECUTE $(vPath) $(vFile);
Note: The above two variables vPath and vFile must be enclosed in Dollar Symbol
For eg $(vPath) . For some reason this editor is not showing up Dollar Symbol