---
title: "How to analyse a Slack export in Qlik, Power BI or Tableau"
description: "How to load a Slack export into Qlik, Power BI or Tableau: each vendor's own import route, a Python script that flattens it to CSV, and privacy checks."
canonical: https://plety.net/about/guides/analyse-a-slack-export-in-qlik-power-bi-or-tableau
last-updated: 2026-12-03
---

# How to analyse a Slack export in Qlik, Power BI or Tableau

By Plety. Updated 2026-12-03.

To analyse a Slack export in Qlik, Power BI or Tableau, flatten its JSON day files into one table with a row per message, then load that CSV with the tool's own file connector. As of December 2026, all three can also read JSON directly, but the export's folder layout makes a single flattened file the more reliable route. Check the personal data before any dashboard is shared.

## Why does a Slack export need flattening before a BI tool can use it?

A Slack export needs flattening because it spreads every conversation across many small JSON files, while a dashboard works best from one table with a row per message. Slack's guide to reading exports, as of December 2026, says each channel or direct message has its own folder with one JSON file for each day that has messages, and that reference files such as users.json and channels.json hold the user and channel IDs.

Every message carries four fields: type, user (the sender's ID), text and ts, a Unix-style timestamp. Reactions sit inside the message as a list giving each emoji's name, a count and the members who reacted; Slack says the list of members may be incomplete but the count is always accurate. The channel name is the folder name, not a field in the message, so any route into a BI tool has to carry the folder name across. The full layout is at https://plety.net/about/guides/what-is-in-a-slack-export.

## What is each vendor's own import route for a Slack export?

Each tool can read JSON with its own built-in connector, and each needs care with the mixed files in a Slack export. The table sets out the routes in the vendors' help pages as of December 2026.

A workspace with years of history has a file for every channel and every active day, so the practical route is to flatten the export once into a single CSV. Qlik Cloud's help lists delimited text files, such as CSV, among the data file formats it loads. Power BI Desktop opens a CSV from Get Data, Text/CSV, and Tableau's wildcard union covers text files as well as JSON.

*Native JSON routes for a Slack export, from each vendor's help pages (December 2026)*

| Tool | Native JSON route | What to watch with a Slack export |
| --- | --- | --- |
| Microsoft Power BI Desktop | Get Data, Folder: the connector lists the files in the folder and its subfolders, then offers Combine & Transform Data or Combine & Load | Microsoft says every file in the folder and its subfolders is processed the same way, based on the example file chosen. Choose Transform data first and filter out users.json, channels.json and the other reference files, which are shaped differently from the day files |
| Tableau Desktop | Under Connect, select JSON File and open one day file, then add a wildcard union with Expand search to subfolders | Tableau infers the schema from the first 10,000 rows of every file in the union, and each file must end in .json, .txt or .log. The union adds Sheet and Table Name fields to show where rows came from, but a day file is named after its date, so check that the channel name survives |
| Qlik Cloud | A LOAD statement with the json format in the load script, as in Qlik's example LOAD * from [lib://DataFiles/xyz.json] (json); | Qlik says an array of objects loads one row per object and nested fields are named parent.child, but arrays such as reactions need separate LOAD statements linked by a hashed key. One LOAD from JSON can bring in up to 5,000 fields and 1,000 tables |

## How do you flatten a Slack export to CSV with Python?

A short Python script turns the whole export into one file, slack_messages.csv, with a row per message. Unzip the export, save the script below as slack_to_bi.py and run python slack_to_bi.py followed by the path to the unzipped folder. By default it writes activity data only: the conversation (the folder name), the date and time in UTC, the sender's ID, the subtype, a word count, the number of reactions and whether files were attached.

Message text is left out unless KEEP_TEXT is set to True, and entries that are not message objects are skipped. The file is written as UTF-8 with a byte order mark, because Microsoft's Text/CSV help says Power BI infers UTF-8 only when a file starts with one. If text is included, Microsoft says the Line breaks setting Ignore quoted line breaks keeps a message of several lines in one cell. Decide on KEEP_TEXT before the first import: Power BI Desktop records the number of columns at first import, and a later refresh does not add columns beyond it.

A version with names and text for opening in Excel is at https://plety.net/about/guides/convert-a-slack-export-to-csv-or-excel.

```
import csv, json, sys
from datetime import datetime, timezone
from pathlib import Path

root = Path(sys.argv[1])   # the unzipped Slack export folder
KEEP_TEXT = False          # True only if the dashboard needs message text

head = ['conversation', 'date', 'time_utc', 'user_id', 'subtype', 'words', 'reactions', 'has_files']
with open('slack_messages.csv', 'w', newline='', encoding='utf-8-sig') as f:
    out = csv.writer(f)
    out.writerow(head + (['text'] if KEEP_TEXT else []))
    for day in sorted(root.glob('*/*.json')):
        for m in json.loads(day.read_text(encoding='utf-8')):
            if not isinstance(m, dict) or 'ts' not in m:
                continue  # not a message
            t = datetime.fromtimestamp(float(m['ts']), tz=timezone.utc)
            text = m.get('text', '')
            row = [day.parent.name, t.date().isoformat(), t.strftime('%H:%M:%S'),
                   m.get('user', ''), m.get('subtype', ''), len(text.split()),
                   sum(r.get('count', 0) for r in m.get('reactions', [])),
                   int('files' in m)]
            out.writerow(row + ([text] if KEEP_TEXT else []))
```

## Which personal data checks apply before a Slack dashboard is shared?

Five checks apply before anyone else sees a Slack dashboard, because every row describes something a person wrote. The ICO (now formally the Information Commission) sets out most of them in its guidance on monitoring workers, and Microsoft's Power BI help adds a warning about public sharing. The table summarises them.

Microsoft points internal users to its Embed and Embed in SharePoint Online options, which it says enforce permissions and data security. A Power BI administrator controls whether Publish to web can be used at all, through a tenant setting.

*Personal data checks before sharing a Slack dashboard*

| Check | What to look at | Basis |
| --- | --- | --- |
| Purpose | Be clear about the purpose and choose the least intrusive means; data should not be reused for a new purpose without a new lawful basis | ICO, monitoring workers |
| Minimisation | Load only the columns the dashboard needs, and leave message text and names out of the model where counts are enough | ICO, monitoring workers |
| DPIA | A data protection impact assessment must come first where processing is likely to cause high risk, and the ICO says one should be done in other monitoring cases too, with reasons recorded if not | ICO, monitoring workers |
| Telling staff | Workers must be told about monitoring in an accessible way, except in very exceptional cases where covert monitoring is justified | ICO, monitoring workers |
| Sharing settings | With Publish to web, anyone on the internet can view the report without signing in, including detail-level data in the model that the report does not display | Microsoft Learn, Publish to web |

## Is a Slack dashboard a form of monitoring workers?

It can be, if it measures what identifiable people wrote, when or how often. The ICO describes monitoring workers as any form of monitoring of people who carry out work on your behalf, at work or elsewhere and during or outside working hours, and its examples include email and messaging. It warns that capturing personal correspondence, or communications with a union representative, raises significant concerns.

Counting by channel, team or month rather than by person is one way to choose the less intrusive means. As of December 2026, the ICO's monitoring guidance says it is under review because of changes made by the Data (Use and Access) Act 2025, so check the current version before relying on it. Why staff messages carry privacy expectations is covered at https://plety.net/about/compliance/employee-privacy-in-workplace-messages.

## How does a Slack dashboard help when a company closes or licenses its records?

A dashboard of message counts by channel and year shows what a workspace holds without anyone reading the messages. That helps a company that is closing or licensing its records describe them accurately, as set out at https://plety.net/about/guides/how-to-describe-company-data-to-ai-buyers. Plety never holds, views or passes on records: personal data is removed inside the company's own systems, using steps such as those at https://plety.net/about/guides/how-to-anonymise-a-slack-export.

## Questions

### Does a flattened Slack export keep thread structure?

No. Slack's guide says an export does not differentiate between messages in a thread and messages sent to a channel, so the CSV lists replies by time alongside other messages.

### Why does the script give times in UTC?

Slack stores ts as a Unix-style timestamp, and the script converts it with Python's timezone.utc so that every row uses one time zone. A dashboard that needs UK local time can convert the column after loading.

### Can the dashboard show names instead of user IDs?

Yes, by joining the user_id column to the member list in users.json, which is org_users.json on Enterprise. Names make the dashboard identify people directly, so check first whether IDs or team totals are enough.

### Can Tableau read the nested reactions list directly?

Tableau's JSON connector asks which schema levels to analyse, and selecting a child level also selects its parent. Its help says not to exceed the 10x10 limit for nested arrays; the script avoids the issue by reducing reactions to a count.

## Sources

- [Slack Help Center, How to read Slack data exports](https://slack.com/help/articles/220556107-How-to-read-Slack-data-exports)
- [Microsoft Learn, Power Query Folder connector (Power BI)](https://learn.microsoft.com/en-us/power-query/connectors/folder)
- [Microsoft Learn, Power Query Text/CSV connector (Power BI)](https://learn.microsoft.com/en-us/power-query/connectors/text-csv)
- [Microsoft Learn, Publish to web from Power BI](https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-publish-to-web)
- [Tableau Help, JSON File data source](https://help.tableau.com/current/pro/desktop/en-us/examples_json.htm)
- [Tableau Help, Union your data (wildcard union)](https://help.tableau.com/current/pro/desktop/en-us/union.htm)
- [Qlik Cloud Help, Working with JSON files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/working-with-JSON.htm)
- [ICO, Data protection and monitoring workers](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/employment/monitoring-workers/data-protection-and-monitoring-workers/)

## Read next

- [What is in a Slack export? Files, folders and format explained](https://plety.net/about/guides/what-is-in-a-slack-export.md)
- [How to convert a Slack export to CSV or Excel (JSON to spreadsheet)](https://plety.net/about/guides/convert-a-slack-export-to-csv-or-excel.md)
- [How to anonymise a Slack export: files, fields and tools](https://plety.net/about/guides/how-to-anonymise-a-slack-export.md)
- [Do employees have privacy in workplace messages?](https://plety.net/about/compliance/employee-privacy-in-workplace-messages.md)
- [Licensing team chat (Slack and Teams) to AI buyers](https://plety.net/about/records/team-chat.md)

---

Plety Limited, company number 17598186, registered in England and Wales. Registered office: 15 Hackbridge, Wallington, United Kingdom, SM6 7AU. Contact: partnerships@plety.net. Book a call: https://plety.net/book.

General information, not legal advice.
