Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have employee data - EmpName, Joining Date, Exit Data and added Flag value status as current, New and exit. Each month there are new and exit employees. The next month current is a calculated value using previous month data.
I am getting Invalid Expression for the below script. Can someone please help me understand what is missing in the below.
Load
count(if(status='Current',"EmpName")) as JanExisting,
count(if(status='Current',"EmpName"))
+count(if(status='New' and Month='Jan',"EmpName")) -
count(if(status='Exit' and Month='Jan',"EmpName"))
as JanFinal
Resident MyTable;
Load
JanFinal +
count(if(status='New' and Month='Feb', "EmpName", null())) -
count(if(status='Exit' and Month='Feb', "EmpName", null()))
as FebFinal
Resident MyTable;
Load
FebFinal +
count(if(status='New' and Month='Mar', "EmpName", null())) -
count(if(status='Exit' and Month='Mar', "EmpName", null()))
as MarFinal
Resident MyTable;
Hi,
I have a problem where I need to get Transaction data from a OLE DB data source and then add en Excel file with manually entered Budget data for four different companies, the load data look like this compressed with the relevant fields for two of the companies as below.
I add the company name as Client field for every company and the joined data for Transactions table is working as supposed.
My problem is that the budget data is added on the last day of the month because it's mainly relevant to look at this aggregated per month. But since there are multiple transactions in the Transaction data the last day of the month every month the Budget data get multiplied for every occurrence of that date.
What I've found is that I should use a Link table to solve this issue but it seems that my skills is not enough to get the script right.
I would like to group interval of accounts for example revenue, material cost, gross profit etc. for set analysis and add a master calendar (or similar) to do analysis on different time periods. Is it possible to have a Link table for Client, account and date fields and then add grouping and master calendar connected in the Link table or do you have to do this in the Load for the original data sources?
Dear All
The include variable is located behind the exit clause.
This script is not interrupted in the exit clause.
Why is the include variable executed?
*********** Script new *****
*************** Script end
Qlik Sense Version : Nov 2023 patch 7
Best Regard
Hanna.choi
For a Qlik sense training course I have created a gauge displaying the ratio of males as a percentage of the total population. Because I wanted to have a benchmark, I set a limit which is dynamic with the use of a set-expression.
Whenever I select a different age group, the gauge changes to display a new number.
I have created a master item (measure) for this ratio and added this expression:
count(distinct(if(Gender='Male',PatientID)))
/
count(distinct(PatientID))
I don't know why but I thought of finding out a different way to write this expression. I tried some things and finally ended up with this:
count({1<Gender={'Male'}>} distinct(PatientID))
/
count(distinct(PatientID))
Can I conclude that both expressions actually do the same and performance-wise: does one way have an advantage over the other?
when i am trying to create connection with source like youtube ,azure ,amazon athena ,office 365 sharepoint
asking authentication how i can solve this problem ?
mention answer step by step
We are trying to login our html mashup to Qlik Cloud using JWT auth.
We have already setup the JWT identity provider in the Qlik management console.
The JWT token is created using a php library and send for authorisation using the following code:
var config = {
host: 'qwxxxxxxxxxxxxxx.eu.qlikcloud.com',
prefix: '/',
port: 443,
isSecure: true,
webIntegrationId: 'xxxxxxxxxx', // from qlik management console
jwt: "eyJhb....UA", //token created using the php library
};
async function login() {
function isLoggedIn() {
console.log("checking logged in");
return fetch("https://" + config.host + "/api/v1/users/me", {
method: 'GET',
mode: 'cors',
credentials: 'include',
headers: {
'Content-Type': 'application/json',
'qlik-web-integration-id': config.webIntegrationId
},
}).then((response) => {
return (response.status === 200);
});
}
return isLoggedIn().then((loggedIn) => {
if (!loggedIn) {
console.log("not logged in");
return fetch("https://" + config.host + "/login/jwt-session", {
method: 'POST',
mode: 'cors',
credentials: 'include',
headers: {
'Content-Type': 'application/json',
'qlik-web-integration-id': config.webIntegrationId,
'Authorization': 'Bearer ' + config.jwt,
},
}).then((response) => {
if (response.status !== 200) {
console.log("failed logged in");
throw new Error('failed to login via jwt');
}
});
} else {
console.log("already logged in");
}
});
}
The response we get from the request is the following:
{
"errors": [
{
"title": "Authentication failed",
"detail": "No identity-provider is able to complete the exchange",
"code": "LOGIN-1",
"status": "401"
}
],
"traceId": "9cf4f041f5b6aa685eca85cce00075c3"
}
The JWT token is valid and properly decoded. We tested it by removing the "nbf" from the payload and the response mentioned that the nbf was missing.
Any thoughts what can be the problem?
Thanks in advance
Elevate your career with Connect. 15 Hands-on workshops and certifications for Data and Analytics.
Browse our helpful how-to's to learn more about navigating Qlik Community and updating your profile.
Your journey awaits! Join us by Logging in and let the adventure begin.
Qlik enables a frictionless migration to AWS cloud by Empresas SB, a group of Chilean health and beauty retail companies employing 10,000 people with 600 points of sale.
Qlik Luminary Stephanie Robinson of JBS USA, the US arm of the global food company employing 70,000 in the US, and over 270,000 people worldwide.
Join one of our Location and Language groups. Find one that suits you today!
A private group is for healthcare organizations, partners, and Qlik healthcare staff to collaborate and share insights..
Qlik Communityの日本語のグループです。 Qlik製品に関する日本語資料のダウンロードや質問を日本語で投稿することができます。
Welcome to the group for Brazil users. .All discussions will be in Portuguese.
Hear from your Community team as they tell you about updates to the Qlik Community Platform and more!