Reduce storage costs: compression techniques Run Length Encoding & Dictionary Encoding

𝐂𝐨𝐦𝐩𝐫𝐞𝐬𝐬𝐢𝐧𝐠 𝐝𝐚𝐭𝐚 𝐫𝐞𝐝𝐮𝐜𝐞𝐬 𝐬𝐭𝐨𝐫𝐚𝐠𝐞 (𝐜𝐨𝐬𝐭𝐬).  Two compression techniques that are used a lot are called Run Length Encoding (RLE) and Dictionary Encoding (DE). These compression methods are used in the file format parquet but also by the Vertipaq engine in Power BI. Knowing about these compression techniques helps you better understand why the file size…

Why many-to-many relationships are evil – Junction tables / Bridge tables

Why does Power BI hate many-to-many relationships? Despite the title (that did its job in getting your attention) many-to-many relationships *-* are not necessarily evil. However, modeling your data in a manner that avoids many-to-many relationships helps in a lot of scenarios with data consistency, among other things. Let’s dive into this using the ancient…

Data modeling problem: Events in Progress in Human Resources data – Dealing with employees who change teams

I have a data modeling conundrum. It concerns records in a dimension that have start- and enddates. I’ve heard people refer to this type of problem as the “events in progress”-problem. My specific version of this problem goes like this: Imagine you have a sales fact table called FactSales with a date, an employee who…