Skip to main content

Welcome to
Qlik Community!

cancel
Showing results for 
Search instead for 
Did you mean: 
  • 218,904 members
  • 6,947 online
  • 1,997,500 posts
  • 149,752 Solutions
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Welcome to Qlik Community

Recent Discussions

  • forum

    New to Qlik Analytics

    First date of a data set but of the current year

    Hello, I have a set of data which contains dates reaching from 01-03-2024 to 30-03-2024 and various dates in 2023. Now I need to get the first date ou... Show More

    Hello,

    I have a set of data which contains dates reaching from 01-03-2024 to 30-03-2024 and various dates in 2023.

    Now I need to get the first date out of my data set but out if this year. This would be 01-03-2024.

    When I use min(), minstring(), makedate() the result is either 01-01-2024 or the first date in the data which is some day in 2023.

    Is it possible somehow to get the desired 01-03-2024?

    Show Less
  • forum

    Qlik Replicate

    repctl checkpoint "task name" for downstream task (source: log stream task & tar...

    repctl checkpoint "task name" for downstream task (source: log stream task & target : oracle database) is not giving correct timestamp.    D:\bin>repc... Show More

    repctl checkpoint "task name" for downstream task (source: log stream task & target : oracle database) is not giving correct timestamp. 

     

    D:\bin>repctl getcheckpoint "TASK_INGCDC_02"

    command getcheckpoint response:

    {

            "checkpoint":   "checkpoint:V1#33512#1271;638506460899807820;20240120221751514712#0#0#*#0#137"

    }

    [getcheckpoint command] Succeeded

    Regards

    Dipankar

     

    Show Less
  • forum

    App Development

    I would like to replace Nested "previous" (script function)

    Hi, I'd like to replace in my script some nested previous used to find the last value for a field (in this case, the supply source) in a table that ha... Show More

    Hi,

    I'd like to replace in my script some nested previous used to find the last value for a field (in this case, the supply source) in a table that have values similar to:

    Tab:
    Load *,
    If(len(trim(Source2))= 0 or Source2='NULL' or Source2='-', Null(), Source2 ) as Source
    INLINE [Trip Stop Type Source2 Pickup Delivered
    a1 1 1 a 20 -
    a1 2 2 - - 11
    a1 3 2 - - 6
    a1 4 2 - - 2
    a1 5 3 b 18 -
    a1 6 2 - - 16
    a1 7 4 - - 3
    ](delimiter is ' ');

    This would be a tipical trip, in which there are 4 types of Stops: 1 for initial product pickup, 2 for delivery to customers, 3 for others product pickup (e.g. in a provider) and 4 for product returned to plant.

    I need to identify the source for each stop (that would be the previous source untill the truck stop in a provider, changing the source, type 3) and I solve this situation by using nested "previous" function as follow. Could you help me to simplify this scrip? (maybe with peek function or using other one).

    My initial solution was:

    Source:
    Load
    Trip&Stop as TripStop,
            if(isNull(Source),
        if(isnull(Previous(Source)),
            if(isnull(previous(Previous(Source))),
                if(isnull(previous(previous(Previous(Source)))),
                    if(isnull(previous(previous(previous(Previous(Source))))),
                        if(isnull(previous(previous(previous(Previous(previous(Source)))))),
                            if(isnull(previous(previous(previous(Previous(previous(previous(Source))))))),
                                if(isnull(previous(previous(previous(Previous(previous(previous(previous(Source)))))))),
                                    if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(Source))))))))),
                                        if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(Source)))))))))),
                                            if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(Source))))))))))),
                                                if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))),
                                                    if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))),
                                                        if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))),
                                                        if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))),
                                                            if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))))),
                                        if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))))),
                                                                    if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))))))),
                                                                    if(isnull(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))))))),
                                                                    previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))))))),
                                                                                      previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))))))))
                                                                ,previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))))))             
                                                                ,previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))))))   
                                                                ,previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))))
                                                                ,previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))))
                                                                ,previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))))     
                                        ,previous(previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(Source)))))))))))))
                                        ,previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(previous(Source))))))))))))
                                        ,previous(previous(previous(Previous(previous(previous(previous(previous(previous(previous(Source)))))))))))
                                        ,previous(previous(previous(Previous(previous(previous(previous(previous(previous(Source))))))))))
                                        ,previous(previous(previous(Previous(previous(previous(previous(previous(Source)))))))))
                                          ,previous(previous(previous(Previous(previous(previous(previous(Source))))))))
                                ,previous(previous(previous(Previous(previous(previous(Source)))))))
                                    ,previous(previous(previous(Previous(previous(Source))))))
                            ,previous(previous(previous(Previous(Source)))))
                           ,previous(previous(Previous(Source))))
                       ,previous(Previous(Source)))
                    ,Previous(Source))
                ,Source) as SourceOk

    RESIDENT Tab;

    DROP TABLE Tab;

    Show Less
  • forum

    Design and Development

    talend and qvd files

    Hi, considering the recent acquisition of Talend, is it possibile to read and write qvd files from Talend? If not, is it in the future roadmap? Thanks
  • forum

    Qlik Application Automation

    Cell sorting by color in qlikView

    Hello,Is it possible to do cell sorting by color in qlikView? I have such data and I would like to sort in such a way that records must be colored fi... Show More

    Hello,
    Is it possible to do cell sorting by color in qlikView?

    Heorhi11_0-1715150714118.png


    I have such data and I would like to sort in such a way that records must be colored first.

    Please help!!!

    Show Less
  • forum

    New to Qlik Analytics

    Vizlib replacement with Qlik native charts

    Hi All,I am working on VizLib replacement for one of my Qlik Dashboard. In the dashboard one of the sheet have VizLib Filter pane chart in which Dimen... Show More

    Hi All,

    I am working on VizLib replacement for one of my Qlik Dashboard. In the dashboard one of the sheet have VizLib Filter pane chart in which Dimension has taken CNSelect, and in conditional filtering =IF(ONLY({1} CNOrder)<13,True(),False()) expression has applied
    in 2nd filter pane =IF(ONLY({1} CNOrder)<25 AND ONLY({1} CNOrder)>12,True(),False()) this expression has applied

    2 filter panes has formed . I have selected value from 1st Filter pane and also value from 2nd filter pane, so it has not removed value from 1st filter pane when selected value from 2nd filter pane.

    I need to implement exactly same with native Filter pane object in frontend only

    Please help, it would be so helpful when someone solves this

    Thanks!!

    Show Less
  • forum

    New to Qlik Analytics

    How integrate a table with two fields which refer to two different tables?

    Dear Community 🙂 Here the "challenge": I want to link a table that has three fields: "Product ID", "Supplier No" and "is_DefaultSupplier" as this tab... Show More

    Dear Community 🙂

    Here the "challenge":

    I want to link a table that has three fields: "Product ID", "Supplier No" and "is_DefaultSupplier" as this table shows the Default Supplier every product with the Supplier No.

    In the DataModel (attached), I have a table "ProductDim" with the field "Product ID" and a table "Supplier" with "Supplier No". 

    How can I link my new table? 🙂 Do I have to go via the LinkTable?

    Thanks a lot and greetings from Switzerland!

    Pesche

    Show Less
  • forum

    App Development

    How to use the Cyclic Group along with Aggr function to dynamically recalculate ...

    Qlik have introduced the Cyclic group to Qlik Sense Cloud, Which is a fantastic addition for you to dynamically change the dimension based on the cycl... Show More

    Qlik have introduced the Cyclic group to Qlik Sense Cloud, Which is a fantastic addition for you to dynamically change the dimension based on the cyclic group.. This opens the doors to dynamically use the the Cyclic group in Aggregation function in a calculation.

    • Create a Cyclic group with the required Dimension values . EG Locations.
    • Create a Variable in the script to get the label of the group dimension created above (Note the single quotes and the = inside , very important for the $ expand to compute the values from the cyclic field name selected

    set vLocations = '=GroupDimensionLabel(Locations)';

    • Use the variable inside your formula

    Aggr(Rank(1-count({<[somefield]={'somevalue'}>}some_number)/count(some_number)),$(vLocations))

    Show Less
  • forum

    New to Qlik Analytics

    Set expression to display previous year December values (with if statement insid...

    I want to create a Column 'Equity Previous Year December' to display Equity for the Previous year's December values against the PERIOD_YEAR_MONTH colu... Show More
    I want to create a Column 'Equity Previous Year December' to display Equity for the Previous year's December values against the PERIOD_YEAR_MONTH column ranging from 2023-01 to 2024-03

    PERIOD_YEAR_MONTH Equity current period Equity Previous Year December
    2024-03
    2024-02
    2024-01
    2023-12
    2023-11
    --
    --
    2023-01
    2022-12
    324234
    755456
    342555
    657574
    2131821
    --
    --
    485325
    723944
    657574
    657574
    657574
    723944
    723944
    --
    --
    723944
     
     
    I tried the set expression below but only the first part of if condition gets evaluated. How can I achieve my goal? 😕 

    =Sum({< 
         PERIOD_YEAR = {"$(=If(PERIOD_YEAR = '2024', '2023', '2022'))"}, 
         PERIOD = { '12' }
        >}
    Total Equity current period)

     

    Show Less
  • forum

    New to Qlik Analytics

    Iterate to extract the data in the future

    Hi There,I have an SQL query that runs in QLIK. I have included some variables to take a snapshot from the current fiscal date, month, and year up to ... Show More

    Hi There,

    I have an SQL query that runs in QLIK. I have included some variables to take a snapshot from the current fiscal date, month, and year up to the last four FY years and append the tables to one table and with some conditions. If the stakeholders view this report in 2030, they should be able to view the data from 2020 till 2030, not just latest four years (Example: If stakeholders view the report in the year 2030, they should be able to view the data from 2030 till 2020). 
    I am not sure how I can fit in all the below SQL query to loop through.

    I appreciate your help on this.

     

    /* From current to last 4 FY years */
    Let vYear_Current = Year(Today());
    LET vYear_Previous_1 = Year(Today()) -1;
    LET vYear_Previous_2 = Year(Today()) -2;
    LET vYear_Previous_3 = Year(Today()) -3;
    LET vYear_Previous_4 = Year(Today()) -4;
    LET vYear_Previous_5 = Year(Today()) -5;
    
    /* From current to last 4 FY snapshot date */
    
    let current_fy_Date = MonthStart(DayName(YearEnd(today(),-1, 8)));
    let current_1_fy_Date = MonthStart(DayName(YearEnd(today(),-2, 8)));
    let current_2_fy_Date = MonthStart(DayName(YearEnd(today(),-3, 8)));
    let current_3_fy_Date = MonthStart(DayName(YearEnd(today(),-4, 8)));
    let current_4_fy_Date = MonthStart(DayName(YearEnd(today(),-5, 8)));
        
     POP:  
     SQL
    WITH DF1 AS (
        SELECT * 
        FROM ES_TABLE ES
        WHERE 
    ),
    DF2 AS (
        SELECT * FROM UG_ES_CTE
        GROUP BY FY
        ORDER BY FY DESC
    ),
    DF3 AS (
        SELECT '$(vYear_Previous_1)' || '/' || '$(vYear_Current)' as FY_YEAR_SNAPSHOT,
        FROM  ETD_TABLE
        WHERE TO_DATE('$(current_fy_Date)', 'DD-MM-YYYY') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
            
        UNION ALL
        SELECT '$(vYear_Previous_2)' || '/' || '$(vYear_Previous_1)' as FY_YEAR_SNAPSHOT,
            
        FROM ETD_TABLE
        WHERE TO_DATE('$(current_1_fy_Date)', 'DD-MM-YYYY') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
                UNION ALL
        SELECT '$(vYear_Previous_3)' || '/' || '$(vYear_Previous_2)' as FY_YEAR_SNAPSHOT,
          
        FROM ETD_TABLE
        WHERE TO_DATE('$(current_2_fy_Date)', 'DD-MM-YYYY') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
          
        UNION ALL
        SELECT '$(vYear_Previous_4)' || '/' || '$(vYear_Previous_3)' as FY_YEAR_SNAPSHOT,
           
        FROM ETD_TABLE
        WHERE TO_DATE('$(current_3_fy_Date)', 'DD-MM-YYYY') BETWEEN EFEC_STRT_DT AND EFEC_END_DT
           
    ),
    DF4 AS (
        SELECT FY_YEAR_SNAPSHOT,
            SUM(SALES) AS TOTAL_SALES
        FROM UNIONS
        GROUP BY FY_YEAR_SNAPSHOT
        ORDER BY FY_YEAR_SNAPSHOT DESC
    ),
    KPI AS (
        SELECT 'Env' AS STRATEGY,
            E.FY_YEAR_SNAPSHOT,
            E.TOTAL_SALES AS POP_SALES,
            FROM DF4 E
            JOIN DF1 S ON S.PROFILE_FY = E.PROFILE_FY
        ORDER BY FY_YEAR_SNAPSHOT DESC
    );

     



    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!