Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can I have a prompt to filter the data when using an SQL query? Something like:
Select * from table where column = prompt
--- where "prompt" is input from the user at run time
Hi all,
How can I move a namespace for an element to the root structure of the XML? Now the xmlns:dt namespace is shown on each and every dt:dt element.
This is what I have:
This is what I want:
Namespace setup:
XML properties
Attribute name:
I couldn't find anything specific in the docs for this. I am sure there must be a straightforward way, but I can't wrap my head around this.
Hopefully someone has an insight on how to achieve this, or has managed to get it working before. Every input is greatly appreciated.
Thanks,
Reno
Hi ,
I have these data
Product;
load ID,annee,etat,Montant from table.qvd ;
the result is like this :
p1 2019 local 100
p2 2019 local 100
p3 2020 Importé 100
p4 2020 local 100
p5 2021 local 100
i want create a graphic simple table who deplay only the local product , Montant with sélection user
the list of local products :
Dear Team:
I have a situation where an update to the table attrep_truncation_safeguard created on source SQL server database ran for 28 days. It was observed that this action created an impact on the tempDB of the SQL server database by filling the disk space which in turn slowed down the database. I would like to understand if an update to the attrep_truncation_safeguard creates overhead performance and how this can be mitigated?
Thank you
How can you convert the numerical date/time value to just the year?
I'm uploading data for a historical view of activity and am trying to extract the year from the shipment date.
The shipment date is being imported as the numerical value, instead of the actual date. The excel file has this field in date format. I attempted to remove the time stamp but the time value is apparently still there.
I've tried to convert to date when loading the data with: Year(Date#("SHIP DATE", 'MM/DD/YYYY')) As "Ship Year" but this produces no result. Screen capture below:
Hi there!
I'm attempting to build a flag in the load script that would show whether a member has the same health plan product in current year as they did in previous year. If they have switched products I want to indicate this with a 'Y.'
See example below:
ID | Year | Product | Switch_Flag |
ABC123 | 2023 | Commercial HMO | N |
ABC123 | 2024 | Commercial HMO | N |
DEF456 | 2023 | Commercial HMO | N |
DEF456 | 2024 | Commercial Non-HMO (UBI) | Y |
GHI789 | 2023 | Medicare Individual | N |
GHI789 | 2024 | Child Health Plus | Y |
JKL012 | 2023 | Medicare Individual | N |
JKL012 | 2024 | Medicare Individual | N |
Any and all help is appreciated! Thanks!
Hi,
There are two tables:
[results]:
Load * Inline
[
USER_ID, VALUE
1, 20
2, 15
1, 25
3, 10
3, 20
1, 15
];
[result_updates]:
Load * Inline
[
USER_ID, VALUE
1, 20
2, 15,
1, 25
];
They will be concatenated and the new table will look like this::
USER_ID, VALUE
1, 20
2, 15
1, 25
3, 10
3, 20
1, 15
1, 20
2, 15,
1, 25
However, we want to remove records from the first table that have a user_id for which there are records in the second table. So this is the result we want (order doesn't matter):
USER_ID, VALUE
3, 10
3, 20
1, 20
2, 15,
1, 25
So, since in the second table (result_updates) there are records with user_id = 1 and 2, then the records from the first table with user_id = 1 and 2 will be removed.
---------------------------------------------------------------------------------------
We tried the following:
[result_updates]:
Load * Inline
[
USER_ID, VALUE
1, 20
2, 15,
1, 25
];
Concatenate (result_updates)
Load * Inline
[
USER_ID, VALUE
1, 20
2, 15
1, 25
3, 10
3, 20
1, 15
]
WHERE NOT EXISTS(USER_ID, USER_ID);
but the result is:
One record is missing - there is only one record with user id = 3. This is the result we want:
USER_ID, VALUE
1, 20
2, 15,
1, 25
3, 10
3, 20
Do you have any suggestions on how we can achieve this? 🤔
Hello Qlik community. I wanted to share this in the event someone is looking for a comprehensive load script that could be used for the Smartsheet REST connection.
These are the development issues I came across and built a solution around:
I found some guidance in the forums and then read up on Smartsheet's API documentation to get an understanding of how they structured their API. After working through this, I now have a solution worthy of sharing with everyone. Really hope this helps someone else - Feel free to let me know what you think. And of course, give it a like to show some appreciation 🙂
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I will walk through the solution below and you can download the txt file to paste into your load editor.
The developer only needs to update a few things in the first few rows of code.
Note: Even though we are using the Shartsheet ID for best practice, the Name is what you will see for each table.
From this point forward, everything is set and the only changes to make are optional.
Variables are assigned so that Sheets or Reports can be pulled.
Connection is established and the "include all" query is passed to get more that the first 100 reports/sheets.
There is an optional stop point you can do here where the two [ACTION] comments are. These are so you can run the script at this point and get the list of all Sheets or Reports - This is in the event you wanted to view a list of all tables you are connected to without having to open Smartsheet to to see.
Once we have our list of Reports and Sheets we are going to pull in, a loop will be set to walk through each one and determine how many records there are. This was a necessary step if you wanted to pull in an unlimited number of records, as the row count limiter prevented us from bringing in more than 10k records at once. The "Include All" query only works on the table name table - not at the row level. Also, asking for the row count always returned the row count to the current page you are on (page one by default).
To get around this, I defined each page to be 1 record long with a max page of 9999999 (set whatever limit you want here). Then I could call and ask for how many pages in total there were - Which in essence tells me how many records there are.
It is possible you have 2 or more Smartsheet reports with the same name. There is also a section of code that checks to see if a table name has already been used. If it has, then it renames one of the tables to add the row number of the duplicate from the list of reports you want to bring in. This way it is easy to find and correct if it was a mistake.
After knowing how many records there are, I set variables up to define limits in the query, by calculating how many pages there are, and created a stopping point for a loop to pull in the exact number of pages available for the Report/Sheet.
Define variables:
Loop through each page and pull it in:
The data that comes in will be in an indexed view of the data table. This script will do an index matching process to bring it back to a standard table view. I also left an optional point for you to decide if you want to exclude fields that are fully null and save space, or include them if you need them for later when as there may not be data there yet.
A space is left here if you want to add the table name to each of the fields.
For example: Table.Field1, Table.Field2
After we have all of the pages for the Report/Sheet, we stitch them back together so they become one table again.
Then we close the loop and drop the table after we iterate through the full list of Reports/Sheets we set to include.
At this point the API load is complete and resident loads can be called for any ETL needed.
Hi,
I have several measures where I need to identify if an action happened a specified number of working days after a supplier was instructed. Just adding a fixed number of days to a date doesn't take into account the differing lengths of each month. So rather than calculating the number of networkdays between two dates I need to add 30 networkdays to a date to get the target date.
Does anyone have any idea how I might achieve this?
Thanks
Nick
Wondering about Qlik Talend Data Integration Sessions? There are 11, in addition to all of the Data & Analytics. So meet us in Orlando, June 3 -5.
Join us on May 15th at 11 AM ET to discuss the Qlik Ideation Process. Bring your questions.
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!