QlikSense usage monitoring: funnel of published apps, apps opened and apps in recurring use

Publications

QlikSense Usage Monitoring: The Apps Nobody Opens Still Cost You

Hector Pincheira

Hector Pincheira

CIO | CTO
Digital Strategy & Technology Innovation

items

Twenty-nine per cent. That is the share of employees who actually use the analytics tools the company licensed for them. Gartner, moreover, has been measuring practically the same figure for seven years. BARC lands on something similar: BI adoption stalls at around 25%. Nor has it moved substantially in years. Yet three out of four management committees keep approving licence budgets without ever having looked at who opens what. QlikSense usage monitoring clears that blind spot with data already sitting on your server, waiting months for somebody to load it.

QlikSense usage monitoring: real platform adoption indicator
The adoption ceiling reported by BARC and Gartner, measured on real active users.

It bothers me a little to have to write this article, if I am honest. Because the information exists, it is free, it comes bundled with the platform, and even so almost nobody looks at it. Qlik even throws in two monitoring apps with the product. They sit there, in their stream, unopened.

A figure that circulates badly

Before going on it is worth cleaning up the data, because this subject attracts a lot of statistics of dubious origin. You will read everywhere that “70% of dashboards go unused, according to Gartner”. That quote, however, is not verifiable: it appears in no traceable publication from the firm. What does survive scrutiny is the adoption ceiling close to 25% reported both by BARC and by Gartner's tracking of active usage.

The difference matters when you are standing in front of a board. If you quote an inflated figure and somebody looks it up, you lose the whole argument, including the part that was true. That is why I prefer to bring the company's own number. It is smaller, it is less spectacular, and it is impossible to argue with because it came off their own servers.

The other number worth having to hand is the price. Qlik Cloud Analytics starts at $300 a month for the Starter plan with ten users. Standard then jumps to 825 and Premium reaches 2,750, always billed annually. On top of that, implementations for mid-sized companies run between 20,000 and 100,000 dollars. At those orders of magnitude, an app nobody opens is not a housekeeping detail: it is a budget line.

Where the data lives: QlikSense usage monitoring starts in the logs

In on-premise installations, every app opening leaves a trace in the engine session logs. The active files live in the Log folder on the node, but those rotate and overwrite each other. The ones that are useful, in contrast, sit in ArchivedLogs, inside the Qlik share, organised by node and by date. It is, besides, a folder the documentation mentions in passing and that nobody shows you in training.

The script that turns session logs into a QVD

// ============================================================
// SESIONES: one row per app opening.
// WATCH OUT: column names changed between versions. Open
// a log in a text editor and check the header before
// trusting this LOAD. I think the change came with one of the
// May releases, but I don't have it exactly.
// ============================================================
Sesiones:
LOAD
    Timestamp(Timestamp#(Left([Timestamp],15),'YYYYMMDDThhmmss'))
        AS FechaHoraSesion,
    Date(Floor(Timestamp#(Left([Timestamp],15),'YYYYMMDDThhmmss')))
        AS FechaSesion,
    [DocId]                                   AS %AppId,
    [Doc Title]                               AS NombreAppLog,
    Upper([UserDirectory] & '' & [UserId])   AS Usuario,
    [SessionId]                               AS IdSesion,
    Interval#([SessionDuration],'hh:mm:ss')   AS DuracionSesion
FROM [lib://QlikShare/ArchivedLogs/*/Engine/Trace/*Session*.log]
(txt, utf8, embedded labels, delimiter is 't', msq)
WHERE Len(Trim([DocId])) > 0
  AND Upper([UserDirectory]) <> 'INTERNAL';
STORE Sesiones INTO [lib://QVD/gob_sesiones.qvd] (qvd);

The WHERE at the end is the most important line in the block. The INTERNAL directory groups the service accounts: sa_scheduler, sa_engine, sa_repository. That is, the ones running the nightly reloads. If you do not filter them out, your most “used” app will be the one reloading every hour. You end up presenting an adoption report that actually measures your own task schedule. I speak from experience.

The app catalogue from the QRS API

The logs say what was opened. They do not say what exists. So to know how many apps are published, who owns them and how much they weigh, you have to query the repository.

// The QRS demands the xrfkey TWICE: as a URL parameter and
// as a header. 16 alphanumeric characters, the same ones.
LIB CONNECT TO 'QRS_Rest';
AppsPublicadas:
LOAD
    id                        AS %AppId,
    name                      AS NombreApp,
    [owner.userId]            AS Propietario,
    [stream.name]             AS Stream,
    Date(Date#(Left(createdDate,10),'YYYY-MM-DD'))    AS FechaCreacion,
    Date(Date#(Left(modifiedDate,10),'YYYY-MM-DD'))   AS FechaModificacion,
    Num(fileSize/1024/1024, '#.##0')                  AS TamanoMB
FROM JSON (wrap on) "root"
WITH CONNECTION (
  URL "https://qlikserver/qrs/app/full?xrfkey=a1b2c3d4e5f6g7h8",
  HTTPHEADER "X-Qlik-Xrfkey" "a1b2c3d4e5f6g7h8"
);
// Apps without a single session: LEFT KEEP would drop them,
// so all are kept and the absence is flagged.
LEFT JOIN (AppsPublicadas)
LOAD
    %AppId,
    Max(FechaSesion)              AS UltimaApertura,
    Count(DISTINCT IdSesion)      AS SesionesHistoricas,
    Count(DISTINCT Usuario)       AS UsuariosHistoricos
RESIDENT Sesiones
GROUP BY %AppId;
STORE AppsPublicadas INTO [lib://QVD/gob_apps.qvd] (qvd);
⚠️ Common error: using LEFT KEEP or a INNER JOIN to cross apps against sessions. The apps nobody opened vanish from the result, and those are exactly the ones you are looking for. The Left Join keeps them, with the field left null.

The expressions behind QlikSense usage monitoring

With the two tables in QVD, the dashboard is built from four measures. The first is trivial and even so nobody has it published.

// 1. ACTIVE USERS IN 90 DAYS
Count({<FechaSesion={">=$(=Date(Today()-90))"}>} DISTINCT Usuario)

// 2. ZOMBIE APPS: published, without a single session in 90 days.
// e() excludes from the set the AppId that DID have activity.
Count({<%AppId = e({<FechaSesion={">=$(=Date(Today()-90))"}>} %AppId)>}
      DISTINCT %AppId)

// 3. DAYS SINCE LAST OPENING (per app, in a table)
Today() - Max(TOTAL <%AppId> FechaSesion)

// 4. CONCENTRATION: how much of the usage the top user takes.
Max(Aggr(Count(DISTINCT IdSesion), %AppId, Usuario))
/
Count(DISTINCT IdSesion)

The second expression, however, is the one that justifies the article. The e() operator returns the excluded set: every %AppId That no appearance in the set of sessions from the last ninety days. It is the only clean way to count absences in Qlik, because the engine associates by presence and absences, by definition, are in no table at all. Plenty of people try to solve it with a flag calculated in the script; that works, but you have to reload to change the window of days.

The fourth deserves a comment. An app with twenty users where a single one generates 80% of the sessions works as somebody's personal report. Someone mounted it on shared infrastructure and there is little that is corporate about it. Not always a bad thing, mind you. But it is worth knowing before you hand it a forty-minute nightly reload window.

What the business decides with QlikSense usage monitoring

The dashboard is not the deliverable. The decisions are, and there are four, in this order.

Retire. Apps with no openings in ninety days, then, come out of production. Each one that goes frees up reload window and node memory, but the big benefit is another and costs a good deal more to explain in a committee: a stream with forty apps where barely six are useful forces every user into a decision they are in no position to make, and faced with that doubt the natural reaction is not to ask, it is to stop coming in.

Merge. When three different apps have the same users and similar hours, they are almost always the same question split in three for historical reasons about who asked first.

Investigate. A whole area with no sessions does not have a licensing problem; it has a design problem or a trust-in-the-data problem. That conversation is worth more than any generic training, and it only shows up when you can point at the area by name.

Renegotiate. With real consumption documented, the next contract renewal is discussed with your own numbers instead of the vendor's projection.

💡 Key point: the cost of an abandoned app is not its licence. It is the reload window it occupies, the memory it reserves and the minute of doubt it creates in every user who sees it in the stream and cannot tell whether it is the right one.

Common mistakes in QlikSense usage monitoring

  1. Counting sessions instead of unique users. An analyst who opens the same app twelve times a day generates twelve sessions. That is, that is not adoption: it is an app that does not answer them first time. Measure distinct users and, if you can, active duration.
  2. Reading the live logs. The Log folder rotates by size and loses history without warning. The whole historical series, in contrast, is in ArchivedLogs. Also, reading the live log while the engine is writing produces truncated rows that later turn up as odd records nobody can explain.
  3. Not doing incremental loads. A year of session logs in a mid-sized installation is several gigabytes of text. Store the QVD and load only the files later than the last stored date, filtering by file name with FileName().
  4. Publishing the dashboard without Section Access. This model holds who opened what and when, person by person. It is therefore sensitive information, to be handled with care. Restrict it by role from the first deployment, not after the first uncomfortable enquiry.

How to retire an app without being hated for it

The ritual that worked for me has four steps and takes a full month. First, mark it: the app is renamed with a visible prefix, something like [RETIRING]. Second, tell the owner registered in the QRS, who is almost never who you thought. Third, move it to an archive stream where it stays accessible but out of the way. Only then, and after four weeks with no complaints, is it deleted.

It looks bureaucratic for deleting something nobody opens. It is not. The first time I did a straight clean-up, two months later a manager turned up asking for the report he used once a year for the annual close. He was right and I was wrong. Since then the four-week window stretches to thirteen months for any app with the word “close”, “audit” or “annual” in its name.

It is also worth leaving the clean-up as a recurring task rather than a project. A quarterly twenty-minute sweep keeps the catalogue healthy; a heroic clean-up every three years is a political event that consumes more energy than it releases. I write often about this kind of governance decision at hectorpincheira.com.

The lights left on

There are office buildings that at eleven at night have every floor lit and not one person inside. The average BI installation looks a lot like that: reloads running on time every early morning, feeding models nobody will consult, on servers that get paid for either way.

The script is above. It is some forty lines and a REST connector. In most of the companies where I have run it, the result fits into one short, unpleasant sentence that the committee hears in silence.

Most Read

QlikSense Hierarchy: parent-child chart of accounts expanded by levels
QlikSense Hierarchy: the Chart of Accounts That Doesn't Add Up
QlikSense Sum TOTAL: share of each family over the total
QlikSense Sum TOTAL: the Percentage That Changes When You Filter
SAP Business One Inventory Revaluation - featured image of the tutorial
SAP Business One Inventory Revaluation: Fix Wrongly Loaded Costs
Empty chamber with wooden benches: the counterweight that required being present to be used
The Veto You Had to Say in Person: Your Decisions With No Counterweight
SAP Business One customizations - featured image of the pre-upgrade audit tutorial
SAP Business One Customizations: Pre-Upgrade Audit
SAP Business One Customer Concentration - featured image of the tutorial
SAP Business One Customer Concentration: Measure Your Risk with SQL

RELATED ARTICLES