Skip to main content

Welcome to
Qlik Community!

cancel
Showing results for 
Search instead for 
Did you mean: 
  • 217,837 members
  • 7,871 online
  • 1,995,822 posts
  • 149,584 Solutions
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Welcome to Qlik Community

Recent Discussions

  • forum

    Qlik NPrinting

    Qlik Designer Excel Template

    Hello,    I'm working on creating a report in Excel using NPrinting. I have a table with up and down arrows showing the increase/decrease in values ba... Show More

    Hello,

     

     I'm working on creating a report in Excel using NPrinting. I have a table with up and down arrows showing the increase/decrease in values based on 2 years. When trying to add the table in NPrinting Designer, unable to import the table with borders and alignment from the source. If I uncheck the 'Source Format' option, I'm able to import the table but lose the color codes for the up/down arrows. I tried using conditional formatting in Excel but the expression in Qlik Sense is too large to use in Excel. Is there any workaround for this issue? Please help. 

    Show Less
  • forum

    App Development

    Datos no coincidentes(Join)

    Buen día comunidad   Requiero ayuda con lo siguiente, tengo dos tablas:   Historico: con el campo ID:[1,2,3,4,5] Mes: ID[1,2,6,7,8] No he podido halla... Show More

    Buen día comunidad

     

    Requiero ayuda con lo siguiente, tengo dos tablas:

     

    Historico: con el campo ID:[1,2,3,4,5]

    Mes: ID[1,2,6,7,8]

    No he podido hallar la forma de cruzar las dos tablas para obtener los registros no coincidentes, lo que deseo es saber mediante un script los registros de la tabla del Mes que no están en el Histórico 

     

     

     

    Show Less
  • forum

    New to Qlik Analytics

    Qlik Connect 2024 Recommended Sessions

    Hello Qlikkies, For those of you who are going to Qlik Connect this year, what are some of your favorite sessions so far? Any recommendations? 
  • forum

    Integration, Extension & APIs

    JWT authentication in mashup error 401 AUTH-1

    Could anyone help me identify what might be wrong with this code, as it's returning error 401 AUTH-1 const fs = require("fs"); const uid = require("u... Show More

    Could anyone help me identify what might be wrong with this code, as it's returning error 401 AUTH-1

    const fs = require("fs");
    const uid = require("uid-safe");
    const jwt = require("jsonwebtoken");

    const payload = {
      jti: uid.sync(32), // 32 bytes random string
      sub: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      subType: "user",
      name: "XXXXXX",
      email: "XXXXXXXXXXXXXXXXXXXXXX",
      email_verified: true,
      groups: ["Administrators", "Sales", "Marketing"],
    };

    const privateKeyPath = "./privatekey.pem";
    const privateKey = fs.readFileSync(privateKeyPath, "utf8");

    const headerOptions = {
      algorithm: "HS256",
      keyid: "XXXXXXXXXX",
    };

    const signOptions = {
      issuer: "XXXXXXXXX.us.qlikcloud.com",
      expiresIn: "5m",
      notBefore: "1s",
      audience: "qlik.api/login/jwt-session",
    };

    function generateToken() {
      const myToken = jwt.sign(payload, privateKey, {
        ...headerOptions,
        ...signOptions,
      });
      return myToken;
    }

    let token = generateToken();

    var config = {
      host: "XXXXXXXX.us.qlikcloud.com",
      prefix: "/",
      port: 443,
      isSecure: true,
      webIntegrationId: "XXXXXXXXXXXXXXXXXXXXXXXXX",
    };

    async function login() {
      const response = await fetch(
        `https://${config.host}/login/jwt-session?qlik-web-integration-id=${config.webIntegrationId}`,
        {
          method: "POST",
          credentials: "include",
          mode: "cors",
          headers: {
            "content-type": "application/json",
            Authorization: `Bearer ${token}`,
            "qlik-web-integration-id": config.webIntegrationId
          },
          rejectunAuthorized: false
        }
      );

      console.log(await response.text());

      if ((response.status) !== 200) {
        console.log(await response.text());
        throw new Error("Failed to login via JWT");
      }
    }

    async function initialize() {
      try {
          await login();
          configureQlik();
      } catch (error) {
          console.error("Error during initialization:", error.message);
      }
    }

    function configureQlik() {
      require.config({
          baseUrl: `${config.isSecure ? "https://" : "http://"}${config.host}${config.port ? ":" + config.port : ""}${config.prefix}resources`,
          webIntegrationId: config.webIntegrationId
      });

      require(["js/qlik"], function (qlik) {
          qlik.on("error", function (error) {
              $('#popupText').append(error.message + "<br>");
              $('#popup').fadeIn(1000);
          });
          $("#closePopup").click(function () {
              $('#popup').hide();
          });

          var app = qlik.openApp('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', config);
          app.visualization.get('XXXXXXXX').then(function (vis) {
              vis.show("QV01");
          });
      });
    }

    (async function() {
      try {
        await initialize();
      } catch (error) {
        console.error("Initialization failed:", error);
      }
    })();
    Show Less
  • forum

    App Development

    Pivot Table- sum consecutive rows in a pivot table and add it as another/new row

    All,I am new to Qlik and wondering if this is possible to acheive in qlik sense. Requirement: sum consecutive rows in a pivot table and add it as anot... Show More

    All,
    I am new to Qlik and wondering if this is possible to acheive in qlik sense.
    Requirement:

    sum consecutive rows in a pivot table and add it as another/new row.

    Please see the attached for sample data reference.

    For example in the attached qvf .. i want to sum MMR + NAT i.e 10000+670 and add the sum 10670 as a new row below it .

    MMR

    NAT
    MMR+NAT
    PC
    TAR
    ULP

    I want to do this for multiple rows and the data set will be static data set .

    Please let know if the requirement is not clear, appreciate any help or guidance on this.

    Thank you,
    RV

     

    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
  • forum

    Catalog and Lineage

    Qlik Data Modeling Training

    What some resources that have helped you develop your data modeling? I purchased a few Qlik tutorials on Udemy but find that the complexities of real ... Show More

    What some resources that have helped you develop your data modeling? I purchased a few Qlik tutorials on Udemy but find that the complexities of real world business application is hard to transfer. Just looking to the community for some advice on this and what has helped you regarding data modeling.

    Show Less
  • forum

    Integration, Extension & APIs

    Embedding Charts from Qlik app to a React Website using : Enigma JS &amp; Nebula JS ...

    Hey everyone, I figured out how to display charts and insights from a Qlik app on my React website using Enigma JS & Nebula JS.  This will come in han... Show More

    Hey everyone, I figured out how to display charts and insights from a Qlik app on my React website using Enigma JS & Nebula JS. 

    This will come in handy, especially if you're working with a client-managed setup, as embedded links and the Capability API support might be a bit lacking.

    Now, here's the catch - this method works like a charm for Qlik's stack charts, but if you're jazzing up your charts with extensions like VizLib, you might hit a roadblock. Check out the supported chart types here.

    First up, let's connect to your app with Enigma JS

    1. Install Enigma JS:

      npm install enigma.js
      
    2. Bring it into your file:

      import enigma from "enigma.js";
      import schema from "enigma.js/schemas/12.612.0.json";
      
    3. Time to connect to your Qlik App:

      const session = enigma.create({
        schema,
        createSocket: (url) => {
          const socket = new WebSocket(url);
          socket.addEventListener("error", (event) => {
            setError(new Error("WebSocket error"));
            console.error("WebSocket error:", event);
          });
          return socket;
        },
        url: "<ADD THE APP URL HERE>",
      });
      
      const global = await session.open();
      const app = await global.openDoc("<ADD THE DOC ID HERE>");
      

    Moving on to Nebula JS for chart renderings:

    1. Install Nebula JS:

      npm install @nebula.js/stardust
      
    2. Bring in the "embed" function:

      import { embed } from "@nebula.js/stardust";
      
    3. Let's dive into a Pie Chart:

       

      a. Get the sn-pie-chart:

      npm i @nebula.js/sn-pie-chart
      

      b. Import it:

      import snPieChart from "@nebula.js/sn-pie-chart";
      

      c. Now, time to put that pie chart on display:

      const pieChartNebula = embed(app, {
        types: [
          {
            name: "piechart",
            load: () => Promise.resolve(snPieChart),
          },
        ],
      });
      
      pieChartNebula.render({
        element: document.getElementById("pie-chart"),
        id: "<ADD THE PIE CHART'S OBJECT ID>",
      });
      

    I wouldn't exactly call this the top-notch method. If you happen to have any other ideas that might work better, I'd be super grateful if you could share them with me!

    To know more about Nebula JS APIs - https://qlik.dev/apis/javascript/nebula-js/ 

    Connect with Me
    linkedin.png  twitter.png
    Show Less
  • forum

    QlikView App Dev

    Max and Min Highlighters in a Combo Chart @ Qlik Sense

    I'm facing a problem with a combo chart. I want to show the maximum and the minimum value of a measure (only two highlighters), but minimum highlighte... Show More

    I'm facing a problem with a combo chart.
    I want to show the maximum and the minimum value of a measure (only two highlighters), but minimum highlighter appears repeatedly in every month and far from the line.

    Can someone help me, please?

    20240425.png

     

    MEASURE (line): count(distinct Chave_Contrato)

    HIGHLIGHTERS
    Max: =if(count(distinct Chave_Contrato)=max(total aggr(count(distinct Chave_Contrato),[Mês Ano Registro Contrato])),count(distinct Chave_Contrato),0)
    Min: =if(count(distinct Chave_Contrato)=min(total aggr(count(distinct Chave_Contrato),[Mês Ano Registro Contrato])),count(distinct Chave_Contrato),0)

    Thanks!

    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!