Skip to main content

Welcome to
Qlik Community!

cancel
Showing results for 
Search instead for 
Did you mean: 
  • 218,326 members
  • 4,868 online
  • 1,996,499 posts
  • 149,660 Solutions
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Welcome to Qlik Community

Recent Discussions

  • forum

    New to Qlik Analytics

    Max of RangeSum with Set Expression

    Hello All,  I am stumped.  I need to get the max year value (by program) of cumulative field from a table we have limited to current year and beyond. ... Show More

    Hello All, 

    I am stumped.  I need to get the max year value (by program) of cumulative field from a table we have limited to current year and beyond.

    Here is the table displayed correctly:

     

    data_RN_1-1714597570720.png

     

    The formula for the last column is correct.  I now need to only display the rows with the highlighted field.  The problem is different programs end on different years, so we want the calculated value for the max(BC_Year) for that program.

    I have tried many combinations of max(aggr...) but I can't seem to get it right. 

    Can someone help me out?

    Here is my cumulative formula (the last column highlighted in green):

    RangeSum(Above(
    (Sum ( {<Version_PROG = {'Profit & Loss'}
    ,VersionName_PROG={'FCF'}
    >} ValueGroupCurrency_PROG ))

    *
    (1/(Pow(1+(
    Avg(distinct{$<Version_PROG= {'Financials'}
    ,VersionName_PROG= {'WaCC'}

    >}total Quantity_PROG) ),RowNo(total)-1)))


    ,0,RowNo()))

     

    As always....thank you in advance!!!

    Show Less
  • forum

    App Development

    Load sales month script

    Hi everyone, I wrote this code to load different sales files by month: FOR i = 1 to 12 // Generate file name based on month LET vMonth = Pick... Show More

    Hi everyone,

    I wrote this code to load different sales files by month:

    FOR i = 1 to 12
    
        // Generate file name based on month
        LET vMonth = Pick(i,
            'january', 'february', 'march', 'april', 'may', 'june',
            'july', 'august', 'september', 'october', 'november', 'december'
            );
        
        trace $(i);
        trace $(vMonth);
        // File path 
        LET vFile = 'lib://MyData/sales_' & vMonth & '.csv';
        trace $(vFile);
        // Load data from file
        Sales:
        LOAD
            Date,
            Product,
            Amount,
            Price
             FROM [$(vFile)]
    (txt, utf8, embedded labels, delimiter is ';', msq);
    
    NEXT i

    If I only have 2 files (e.g "sales_january.csv" and "sales_february.csv") in MyData directory, I get a "Cannot open file 'lib://MyData/sales_march.csv' error.

    How can I load only existing files without getting this error?

    Thanks in advance for your help,
    Jose

    Show Less
  • forum

    New to Qlik Analytics

    Get User Name in Qlik Sense - SSO connection

    Hello I'm trying to retrieve in my app the user name of the current user.The OSUser() function only returns the userdirectory and the userid.Is there ... Show More

    Hello

     

    I'm trying to retrieve in my app the user name of the current user.

    The OSUser() function only returns the userdirectory and the userid.

    Is there a way to retrieve the user name as shown in the QMC (or when logged on the hub - at the top left)

     

    thanks for your help

    ps: we're working with Qlk enterprise Sept. 2019 Patch 1

     
    Show Less
  • forum

    Integration, Extension & APIs

    Need help with the Qlik Cloud REST API

    Hey all, i am trying to use the following api for qlik cloud along with the documentation URL:   curl "https://your-tenant.us.qlikcloud.com/api/v1/app... Show More

    Hey all, i am trying to use the following api for qlik cloud along with the documentation URL:

     

    curl "https://your-tenant.us.qlikcloud.com/api/v1/apps/{appId}" \
     -H "Authorization: Bearer <API-key>"
    
    https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId-get

     

    i am using this REST API in Angular 16 (Typescript) however i keep getting an '401 Unauthorized' error. here is my code:

     

    export class ApiService {
      constructor(private http: HttpClient) {}
    
      getApp() {
        const appId = '<MY-APP-ID>';
        const apiUrl = `https://<MY-Company-Tenant.us.qlikcloud.com/api/v1/apps/${appId}`;
        const apiKey =
          'Bearer <MY-API-KEY>';
    
        const headers = {
          authorization: apiKey,
        };
    
        return this.http.get<any>(apiUrl, { headers: headers });
      }
    }

     

    here is a couple screenshots of my test app so far along with the error i am getting:

    bskemp01_0-1714398219221.png

    bskemp01_1-1714398288696.png

    bskemp01_2-1714398308338.png

     

    Now i know this 401 error means the API key isnt being applied or is wrong however i am testing this in another app and the API call works:

    bskemp01_3-1714398446909.png

    Does anyone know why this isnt working?

    Show Less
  • forum

    App Development

    Days/Weeks and Total

    I have daily office visit data and a weekly census for that location.  How would I do the following?  I'm thinking I need to use a Total function but ... Show More

    I have daily office visit data and a weekly census for that location.  How would I do the following?  I'm thinking I need to use a Total function but it doesn't seem to work.

    Visits Syntax:

    Count({<Year={$(yearselect)},Source-={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'},Visit_Swipe={0}>} distinct [Employee ID])

    Assigned Seats Measure Syntax:

    Count( {<Year={$(yearselect)},Source={'PSHR'},[Location Description]-={'Work From Home'},[Pay Status]={'Active'}>} distinct [Employee ID])

    Attached some sample data for reference.

    carlcimino_0-1714590122774.png

     

    Show Less
  • forum

    Security & Governance

    Security - Cactus ransomware

    Do we have any statement from Qlik that attests to their cloud systems being patched for the below issue?  https://www.cybersecuritydive.com/news/cact... Show More

    Do we have any statement from Qlik that attests to their cloud systems being patched for the below issue? 

    https://www.cybersecuritydive.com/news/cactus-ransomware-qlik-sense-cves/714578/

     

     

    Show Less
  • forum

    Catalog and Lineage

    Getting load to work with if and exists?

    Hey folks. I have a situation where I need to join a bunch of similar, but not identical, report files into a single.QVD. I've been renaming headers w... Show More

    Hey folks.

    I have a situation where I need to join a bunch of similar, but not identical, report files into a single.QVD. I've been renaming headers with python before loading but now my boss wants me to get rid of the python step and do it all in Qlik.

    The issue is that it's a bunch of .CSV files with slightly different header names. For example "Customer #" vs "Customer number" vs "Client No." There's no option to get these to come in harmonized because they're from different vendors.

    I was trying to do something like: Load Distinct If(exists('Customer #'), 'Customer #') as CustomerNumber If(exists('Client No.'), 'Client No.') as CustomerNumber

    But I get an error about the headers not being unique even though I'd expect the If() to return nothing when the Exists() condition fails.

    Moving the "as CustomerNumber" inside the If() statement is a syntax error.

    Is there a way to do this without making temporary tables and conctenating? I'm now doing it this way and it's working but it seems inelegant and like it's more steps than should be needed.

    Thanks!

    Show Less
  • forum

    App Development

    Filter Dimension when using Alternate States

    I am trying to create sales info for a customizable "Current Period" and "Prior Period" setup similar to what is in our company's ERP. I used the same... Show More

    I am trying to create sales info for a customizable "Current Period" and "Prior Period" setup similar to what is in our company's ERP.

    I used the same field INVOICE_DATE.autocalendar.YearMonth and created two filters with alternate states for each period.

    While that does work on the surface, it feels really limiting because I cannot seem to filter down any dimension field. I am using a pivot table format, and I cannot seem to filter down to one specific customer or product family or sales rep or anything. 

    Is there a way around this, or is this just inherent to Alt States in QLIK?

     

    THX! 

    Show Less
  • forum

    New to Qlik Analytics

    How to remove 'Select a' prefix in the filter object header which is coming buy ...

    Hi, I am trying to remove the prefix from the header of the vizlib filter which is coming buy default when the filter object is using 2 grid spaces. B... Show More

    Hi,

    I am trying to remove the prefix from the header of the vizlib filter which is coming buy default when the filter object is using 2 grid spaces. But when the filter object is expanded to 3 grid spaces the 'select a' prefix is gone and the header title is shown correctly. I have tried all the possible settings in the object but was not able to remove the prefix in dropdown state.

     

    I am using Qlik Enterprise Feb 2024.

     

     

    Show Less
  • forum

    Move to SaaS

    Qlik Cloud backup options - best way?

    Hello all, I know that there are several similiar topics, but too specific with no big picture included 🙂 I wanted to summarize here and verify with ... Show More

    Hello all,

    I know that there are several similiar topics, but too specific with no big picture included 🙂 I wanted to summarize here and verify with you all possible backup options of Qlik Cloud platform. As far as I know there is no native backup from Qlik side and once someone will remove space/app/qaa/datafile/dc by accident, there is no way how to restore it using Qlik support (there is probably some, but not official and if so I suppose it will be extra paid service).

    I have several options on my mind and I would like to hear your opinion or experience so far:

    1. Manually and regurarly download content (non sense, too much work)
    2. Use Qlik CLI to export all apps as json files + folders as space + other objects as json? 
    3. Use QAA and backup apps to Github as json files + folders as spaces + others if possible? (some version here)
      1. Not ideal case for Github version control logic
    4. Use some paid external 3rd party tools (products from Motio etc.)

    But what I miss in all mentioned solution is to be able to save also configuration of following items (not only apps):

    • spaces - members + permissions
    • datafiles - reside in spaces
    • data connections - reside in spaces
    • QAA's - reside in personal space

    As there is API utilization possibility within QAA/Qlik CLI there is a chance to cover this portfolio at least partially, but not all mentioned areas can be covered as endpoints are limited and does not contain the content itself, just some metadata of items.

    Any idea how to make backups with as much items as possible with reasonable solution?

    Regards

    petrus

    Show Less
Leaderboard

Customer Story

Qlik Data Integration & Qlik Replicate story

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.

Customer Story

Building a Collaborative Analytics Space

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.

Location and Language Groups

Choose a Group

Join one of our Location and Language groups. Find one that suits you today!

Collaborate

Healthcare User Group

Healthcare User Group

A private group is for healthcare organizations, partners, and Qlik healthcare staff to collaborate and share insights..

All are welcome

Japan Group

Japan

Qlik Communityの日本語のグループです。 Qlik製品に関する日本語資料のダウンロードや質問を日本語で投稿することができます。

Request to join

Brasil Group

Brazil

Welcome to the group for Brazil users. .All discussions will be in Portuguese.

open to all

Blogs

Community News

Hear from your Community team as they tell you about updates to the Qlik Community Platform and more!