Supercharge KPIs with Rankings (When Trend And Target Are Not Enough) (Plus a RANKX() DAX Function Tutorial)

A few posts ago I talked about KPIs and how they can be significantly improved by adding a trend. The question is, however, can we do even better? Can we have a current value, a target and a trend and still add more color to a KPI? Turns out that we can, and we can … Continue reading Supercharge KPIs with Rankings (When Trend And Target Are Not Enough) (Plus a RANKX() DAX Function Tutorial)

Custom KPI Trend Calculation – UP ↑ – DOWN ↓ – or About The Same → (PowerBI DAX Tutorial)

Imaging a scenario where your monthly sales are $80 while the budge value for sales was supposed to be $100. Obviously, you are not making your number. However, would you rather be 20% short but with sales trending up or 20% short but sales trending down? I think that most people would agree that the … Continue reading Custom KPI Trend Calculation – UP ↑ – DOWN ↓ – or About The Same → (PowerBI DAX Tutorial)

CONTAINSROW() vs. INTERSECT() Power BI Functions: Pros and Cons and When to Use

I just recently did a video tutorial for CONTAINSROW() function. In that video I was taking a look at the coupon redemption data with a goal of determining how much fraud was occurring across various retailers. One of the subscribers commented on the video that this problem could have been solved with the INTERSECT() DAX … Continue reading CONTAINSROW() vs. INTERSECT() Power BI Functions: Pros and Cons and When to Use

How to Use Correlation Plot to Improve Storytelling and Analysis in Power BI

That is right, we are going to step up our game and start adding correlation analysis to our reports and dashboards. Why would you want to do that? Well, a good reason could be to analyze whether there is a relationship between two variables. Yes, technically, you would want to run a regression to get … Continue reading How to Use Correlation Plot to Improve Storytelling and Analysis in Power BI

Working with Inventory, Balancesheet and Headcount Type Data (Semi-additive measures and LASTNONBLANKVALUE() Power BI DAX Tutorial)

Some things are just not that easy to calculate. Let us take headcount for example, if I had ten people in my department in January, February, and March, then my Q1 headcount is not thirty it is still ten. So with sales we can just sum all the data up, but with things like headcount, … Continue reading Working with Inventory, Balancesheet and Headcount Type Data (Semi-additive measures and LASTNONBLANKVALUE() Power BI DAX Tutorial)

CONTAINSROW() DAX Function Tutorial (is DAX CONTAINSROW() = WHEN EXISTS() in SQL?), Plus a Fraud Detection Calculation

Can we do a CONTAINSROW() DAX function tutorial while implementing a coupon redemption fraud detection calculation? Yes! Can we add to this a discussion about how to calculate distinct counts on temp tables? You betcha! In fact, we can do it all in one video. The dataset is simple, we will take a look at … Continue reading CONTAINSROW() DAX Function Tutorial (is DAX CONTAINSROW() = WHEN EXISTS() in SQL?), Plus a Fraud Detection Calculation

The Very Basics of Row Level Security (RLS – Power BI Tutorial)

There are many videos on YouTube already dedicated to this topic. So why am I doing another one? Well, the goal here is not to teach you Row Level Security. My goal is to help you understand how Row Level Security works. In this video I will discuss what makes row level security work in … Continue reading The Very Basics of Row Level Security (RLS – Power BI Tutorial)

HR Analysis – How to Mask Salaries (and a Parent/Child Hierarchy Power BI Tutorial)

HR Reporting is a sensitive topic where we often have to implement a variety of rules and constraints. Row Level Security is one of the options that we often use to implement those rules, but sometimes, the filtering behavior of RLS is not exactly what we want. In our scenario, imagine a situation where I … Continue reading HR Analysis – How to Mask Salaries (and a Parent/Child Hierarchy Power BI Tutorial)

Last N Weeks Comparisons (DAX Tutorial) (Last 4 weeks, Last 8 weeks, …, Last N weeks)

We often need to compare our current week's sales with the average sales over the last 4, 8, 52 or even N weeks. In this tutorial I go over one of the possible approaches that will allow you to provide a drop-down choice for the user to select the time range to compare with the … Continue reading Last N Weeks Comparisons (DAX Tutorial) (Last 4 weeks, Last 8 weeks, …, Last N weeks)