Skip to main content

Welcome to
Qlik Community!

cancel
Showing results for 
Search instead for 
Did you mean: 
  • 217,895 members
  • 7,729 online
  • 1,995,941 posts
  • 149,593 Solutions
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Welcome to Qlik Community

Recent Discussions

  • forum

    New to Qlik Analytics

    Dynamic date in the WHERE clause

    Hi There, I have the following SQL query, which retrieves data for the last 5 years based on the snapshot taken at the start of the financial year. I ... Show More

    Hi There,

    I have the following SQL query, which retrieves data for the last 5 years based on the snapshot taken at the start of the financial year. I would like to make it dynamic so that I don't have to modify the code next year.

    I would greatly appreciate your guidance on how to achieve this.

     

    SQL_EXTRACT:
    SQL
    WITH sample_data AS (
        SELECT id,
            1 AS count
        FROM table
        WHERE TO_DATE('2023-07-01', 'YYYY-MM-DD') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
     
        UNION ALL
     
        SELECT id,
            1 AS count
        FROM table
        WHERE TO_DATE('2022-07-01', 'YYYY-MM-DD') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
     
        UNION ALL
     
        SELECT id,
            1 as count
        FROM table
        WHERE TO_DATE('2021-07-01', 'YYYY-MM-DD') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
     
        UNION ALL
     
        SELECT id,
            1 as count
        FROM table
        WHERE TO_DATE('2020-07-01', 'YYYY-MM-DD') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
     
        SELECT *
        FROM sample_data;
    Show Less
  • forum
  • forum

    New to Qlik Analytics

    how to include an easy condition of a variable lower than another in a set analy...

    Hi all, I need to include a test in a set analysis. The expression that is not in bold works fine. I just need to include a condition now, i.e I need ... Show More

    Hi all,

    I need to include a test in a set analysis. The expression that is not in bold works fine. I just need to include a condition now, i.e I need to sum the sales when  weeks_left_to_event was a smaller number than current_weeks_left_to_event

    =Rangesum(Above(Sum({<year_event=, weeks_left_to_event<={"current_weeks_left_to_event"} ,month_event=, event_code=p(previous_event_code), event_to_compare=, event_name= >} quantity), 0, RowNo()))

    Any help much appreciated!!

    Show Less
  • forum

    App Development

    Dimension as a measure

    Hi,  I am creating a pivot table where I have a measure which gives a count of ID. I need to to make it a dimension and collapse it so that it shows t... Show More

    Hi,

     I am creating a pivot table where I have a measure which gives a count of ID. I need to to make it a dimension and collapse it so that it shows the count and upon clicking the expand option, I have to see new set of dimensions which will give the data for the count.

    Something like this

    Dim1 count      
    ABC 200 ID Name Country
        1 aa A
        2 ab B
        3 bc N
    Show Less
  • forum

    New to Qlik Analytics

    A join that doesn't surprisingly work

    Hello everyone, I would like to discuss this case and I'm sure someone can explain to me why this happens. In my following script, table1 is a fact ta... Show More
    Hello everyone, I would like to discuss this case and I'm sure someone can explain to me why this happens.
    In my following script, table1 is a fact table of data about Activities that actually have happened and table 2 is a  fact able about all activities, including the ones in table1 and more that are announced but haven't happened yet so they cannot be in table1 yet. Dim_team is a dimension table with team details. The cardinality is many to 1 such as an Event_id can only belong to an ID_Activity, but an ID_Activity and can have many Event_ids.  So the question now is: I tried to right join the tables with a composite key "Activity_Key" (because in fact ID_Activity and ID_for_Activity are the same and so are ID_Team and ID_of_Team) so that I can have all data for Activities even when they have nulls in table1.
    The result I'm getting is not what I expected, it gets partial information, doesn't match info as it should.
    A link table saved the day, but I was -and still am- very confused about that.
     
     
     
     
    dim_team:
     
    LOAD ID_Team,
          Team_Name
          Team_Code
    FROM [$(vPathQVD)team.qvd]
    (qvd);
     
     
     
    fact_table1:   
    //
    LOAD
        "Event_id",
        "ID_Person",
        "ID_Team",
        "ID_Activity",
        "ID_Team"&"ID_Activity" as Activity_Key
     
    FROM [$(vPathQVD)table1.qvd]
    (qvd);
     
     
    right join(fact_table1)
    //fact_table2
    LOAD
     
        "ID_for_Activity",
        "ID_of_Team",
        "ID_of_Team"&"ID_for_Activity" as Activity_Key,
        "Activity_Name",
        "Participants_Number",
         Date,
         Place
     
        
    FROM [$(vPathQVD)Activity.qvd]
    (qvd);
     
     
    I could use some help! Thank you 🙂
    Show Less
  • forum

    QlikView App Dev

    Load 2 QVD's into one table

    I'm trying to combine 2 different qvd's into one table.  Here is what I have.INVOICE:LOAD hdr_key, entity as [entity code], [cash discount amt] as [am... Show More

    I'm trying to combine 2 different qvd's into one table.  Here is what I have.

    INVOICE:
    LOAD
    hdr_key,
    entity as [entity code],
    [cash discount amt] as [amount],
    [cash discount gl account] as [gl account]
    FROM $(vPathNameLayer1)inc-hdr-all.qvd(qvd);


    JOIN
    LOAD
    hdr_key,
    line_key,
    [line gpsa] as [amount],
    [line item gl account] as [gl account]
    FROM $(vPathNameLayer1)inc-line-all.qvd(qvd);

    When I do this then entity code is not showing up for anything from the second join.  How do I accomplish this?  Here is what I would do in SQL but it doesn't like the syntax.

    JOIN

    LOAD

    hdr_key,

    entity as [entity code],

    line_key,

    [line gpsa] as [amount],

    [line item gl account] as [gl account]

    FROM $(vPathNameLayer1)inc-line-all.qvd(qvd) as a,

               $(vPathNameLayer1)inc-hdr-all.qvd(qvd) as b

    WHERE a.hdr_key = b.hdr_key;

    Show Less
  • forum

    New to Qlik Analytics

    Splitting single input column into multiple columns

    Greetings. Is it possible to split data on the load coming in from excel in a single column (InputField) into multiple columns using the blank rows be... Show More

    Greetings.

    Is it possible to split data on the load coming in from excel in a single column (InputField) into multiple columns using the blank rows between questions as a delimiter?

    Current...

    InputField

    1. Question1?      

    ____ Yes, we use this practice today

    ____ No, we have a different practice in place
     
    2.  Question2?      
    ____ Yes, they can do this independently in all scenarios       
    ____ Yes, they can do this independently in some scenarios      
     
    3. xxxxxx

     

    Desired...

    newcolumn1 newcolumn2

    Question1

    ____ Yes, we use this practice today

    ____ No, we have a different practice in place

     

    Question2

    ____ Yes, they can do this independently in all scenarios

    ____ Yes, they can do this independently in some scenarios

     

     

     

    Show Less
  • forum

    App Development

    RangeSum() with Line chart in QLik Sense.

    Hello Experts, I have data since 2021 in my model. I have to create Line Chart by MOnth/Year, the expression of Chart is as based on Running sum of la... Show More

    Hello Experts,

    I have data since 2021 in my model.
    I have to create Line Chart by MOnth/Year, the expression of Chart is as based on Running sum of last 12 months as per below.

    ((sum({<DESCRIPTION=,PARTNO=>} [FA_QTY_FUNC] * [AVERAGE_PRICE])
    /
    Rangesum(Above( Sum({<DESCRIPTION=,PARTNO=>}CONSUME_AVG_PRICE_FUNC),0,12)))
    )*365

     

    now as we have data from 2021 for whole 2021 our expression will not calculate correct running sum of last 12 months. so we want our graph shows only month onwards Jan-2022. 

    As soon as i am trying to do so my RangeSum() is considering Jan2022 as First month starts summing value from Jan2022 only. and my calculation starts showing wrong data as per functional requirement.

    Can we have some expression which will give us last 12 month SUM even if we are showing it in Dimension.

     

    Thanks in advance.

     

    Raval_0-1714134457018.png

     

     

     

     

     

    Show Less
  • forum

    Qlik Enterprise Manager

    COPIA DE SEGURETAT (BACKUP)

    BACKUP: Any guide to backup the qvd (bbdd postgrsql) and Apps? VERSION: Qlik Sense February 2021 Patch 6, qliksenseserver:14.5.18 Thanks.
  • forum

    Qlik Enterprise Manager

    INCIDENCIA (pèrdua de App i sheets)

    Hola,   Ens trobem que durant 2 dies de feina, el 3r dia no queda constancia de res. En cap moment s'ha fet una recuperació de bbdd ni hi ha errors a ... Show More

    Hola,

     

    Ens trobem que durant 2 dies de feina, el 3r dia no queda constancia de res.

    En cap moment s'ha fet una recuperació de bbdd ni hi ha errors a la màquina.

    Algú ha tingut aquest error?

     

    Per altra banda, alguna guia per fer les copies de seguretat del qvd (bbdd postgrsql) i les Apps?

    VERSIÓ: Qlik Sense Febrary 2021 Pach 6, qliksenseserver:14.5.18 

    Gràcies.

    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!