Skip to content
Qlik Dork

Let's make it simple

  • About

Post navigation

← Previous
Next →

The Importance of Metadata

January 18, 2025
DaltonRuer
Coding, Data Modeling
metadata, Qlik, Qlik Sense, QlikView, QVD
image_pdf

Setting the Stage

Imagine that you are an average ordinary Qlik Developer. You start to create a new application for some healthcare big cheese so you find the virtual data warehouse of QVD files and all goes well. The data loads just fine and just for giggles and grins you utilize the Data Preview in the Load Script to see the values and panic hits you. What on earth is wrong with the Age field? That Qlik Dork guy is falling apart and could be 99 for all you know. But Dan and Levi? C’mon they can’t possibly be that old. Suddenly you are reminded of the importance of metadata. If you knew how that field was defined, it might help you understand those crazy values. Right?

Without metadata anyone who sees ages of 999 could totally freak out

Anomalies in data showcase the importance of metadata

Comments = Metadata

Since I first started coding I had a love/hate relationship with comments. You might know the feeling. You want to type your code as fast as you can while the algorithm is fresh in your head. It will be quick … you don’t need comments in your script.

After sleeping for a few weeks/months/years … you have to go back in and edit that comment-less code. You smack yourself in the head because without comments, your well thought out algorithm and flow now makes no sense. Why did you have an IF statement for a code value of 930XQ? After spending 5 days of trial and error, the spider webs begin to clear out of your head. You are able to update the code and this time you do what your first coding instructor told you that you should always do … you add comments to the code. Now you, and any other developer who looks at your fine work can fully understand it.

What does any of that have to do with the work you do in extracting and transforming data and storing those data tables into QVDs for other developers?

Everything. Without metadata (comments from you describing the data) those QVDs in a Qlik Virtual Data warehouse environment, the data is like a bunch of spaghetti code with no comments. When an anomaly arises, weeks of trying to clear the spider webs.

Creating Metadata with Comments

It was so important to the developers they literally called the function to add “metadata” about the data “Comment.” You are able to add the much needed secret decoder metadata with table comments and field comments. They even provided a way for you to add metadata tags to your fields.

Metadata is added to tables and fields simply through the use of the Comment or Tag functions. Seeing the description for the Age field makes the values 999 make a lot more "sense" (pun intended)

Metadata is added to tables and fields simply through the use of the Comment or Tag functions

I know what you are thinking “Qlik Dork you would still have the same problem loading QVD files because you won’t see the code that extracts and transforms and stores the QVD files into the Qlik Virtual Data warehouse.”

Metadata Travels

The beauty is that all of the metadata comments or tags you add … actually become part of the data model and the QVD files themselves. Because Qlik absolutely understands the importance of metadata in helping everyone trust the data.

The Metadata you add to tables/fields is revealed in the data model viewer because Qlik understands the importance of that metadata to data modelers and developers

Data Model Viewer of the creating or utilizing application reveals the Metadata

While you are 100% correct … I will never see those comments in the application you built, me and any developer who has to maintain your application can quickly understand why the Age values are so high. You were using artificial intelligence to gain an understanding of the cognitive abilities. No doubt in any of our minds that cognitively Dan Wizard Pilla and Levi TheMan Turner are clearly working like someone with the wisdom gained from 999 years.

That few minutes of creating comments/metadata just saved both of us weeks of panic and work. I sure hope you added metadata for the Encounters table I loaded as well. Because understanding the Arrival and Discharge times are NOT the values when someone enters data into the Electronic Health Record will be huge, especially if the “know it all” down the hall presents screenshots of the electronic health record system showing your times don’t match. “Oh good you did. You must have had that issue in the past.”

Code revealing how to add metadata to the Encounters table

Code revealing how to add metadata to the Encounters table

Why isn’t PatientID commented for the Encounters table?

I’m just asking for a friend. I applaud you being so vigilant in your work, but the PatientID field is in the Encounters table, but you didn’t add a comment for it. I will never see your code anyway, but they might and they might be curious. Or if you realize I’m teasing you and I wrote the above code and you are seeing it, you might be curious.

The answer is the same as for the question about “what makes Qlik so unique and so powerful?” The Associative Engine of course.

Fields don’t exist as part of “tables.” They just exist in their own symbol tables, and bit pointers map the associations across everything.

Luckily, there is an alternative method of adding all this wonderful metadata and that is through a variation of the “Comment” function that lets you create mapping tables and simply “map” all of the comments/tags at 1 time. Faster to type without all of the syntax characters like line by line, and I prefer this method because it won’t confuse anyone either. That’s kind of cool. Right?

Code that reveals that rather than adding metadata 1 table/field/tag at a time you can create mapping tables and add all the metadata from them. Saving you time.

Code that reveals that rather than adding metadata 1 table/field/tag at a time you can create mapping tables and add all the metadata from them.

Maybe this easier method will help you lean a bit more towards love, than hate, when it comes to adding the needed metadata.

Summary of The Importance of Metadata

The goal of this post was to help you realize how important it is for you, and to encourage you “the data modeler:”

  • To really take to heart the importance of metadata for yourself and other developers
  • To understand how that metadata makes data so much clearer for everyone involved, especially in a decentralized development world
  • To take the few minutes needed to input key metadata with: the future you, anyone that later maintains the code, or tries to utilize the QVD files that you have contributed to the organizations Qlik Virtual Data warehouse library will thank you.

If you have already been doing this I’d love to see your comments about how valuable it is in your organization. 😎

If you didn’t know this could be done and are open to sharing I’d love to read your comments about the times you sure wish you had. 😉

Bonus Concept

While I won’t go into a deeper dive I did want to bring up a bonus concept. One that just hit me when looked at the image of the comment/tag maps. Purely by accident of course. Not pre-planned in anyway of course.  😉

“What if that metadata was read from a catalog system or database instead of being hand typed?” Interesting huh?

Metadata: The Secret Decoder Ring of Data

Quiz

Unlike other recent posts … you are off the hook and there is no quiz. You either understand the importance of metadata after reading this, or it is me that has failed. 😭

2 replies on “The Importance of Metadata”

  1. Marc Algera on January 29, 2025

    Thank you Dalton,

    I really like your posts. They bring a whole new view of using/how to use Qlik and importance of certain areas like documenting (and as we all know, that is the last thing developers do, right?)

    I have been working wit Qlik for over 20 years and still able to learn, especially through these posts. It is so easy how you explain, not just the use but also the importance. It took me a while to document my script (by using simple comments in the script itself) but I will definitely start using it this way more.

    Thank you for all that and keep on doing this.

    • DaltonRuer on January 29, 2025

      Thank you so much Marc. Really made my day.

Most Popular

  • Visualizing Data that does not exist … aka Readmissions Dashboard
  • Visualizing the Busy-ness
  • Data Artistry
  • A Bunch of Whiny Brats
  • Visualizing Blood Pressure

Categories

  • Admin
  • Analytics
  • Application Automation
  • Architecture
  • Business Value
  • Coding
  • Data Literacy
  • Data Modeling
  • Data Science / Big Data
  • Design
  • Fun
  • General
  • Generative AI
  • Geo Analytics
  • Performance
  • Population Health
  • Predictive Analytics
  • Qlik Cloud Data Integratin
  • Security
  • Self Service
  • Storytelling
  • Training
  • Uncategorized
  • User Adoption
  • Visualization

Archive

  • February 2025
  • January 2025
  • December 2024
  • November 2023
  • October 2023
  • June 2023
  • November 2022
  • January 2022
  • December 2021
  • October 2021
  • August 2021
  • June 2021
  • March 2021
  • February 2021
  • December 2020
  • July 2020
  • April 2019
  • February 2019
  • November 2018
  • June 2018
  • December 2017
  • August 2017
  • July 2017
  • April 2017
  • February 2017
  • September 2016
  • July 2016
  • May 2016
  • March 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • June 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
Qlik Dork © 2025. All Rights Reserved.
Proudly powered by WordPress
A theme by Sampression