How to Subtract Dates and Calculate Time Periods in Power BI

Question from Reader: “I have employee leave records with start and end dates. How can I calculate the number of days between these dates in Power BI? I need to analyze leave duration patterns, but I’m struggling to handle the date calculations correctly. Sometimes I get negative values or incorrect results.” Whether you’re tracking employee … Read more

How to Convert Timestamp to Dates in Power BI?

Are you struggling with timestamp conversions in Power BI, or need to show when your report was last refreshed? In this guide, I’ll show you how to handle timestamp conversions effectively and add a dynamic refresh time indicator to your Power BI reports. Converting Timestamp to Date in Power BI Let’s start with converting timestamps … Read more

How to Add Trend Lines in Power BI charts?

Here’s a use case from a reader: “I have a bunch of monthly sales data which we are trying to analyze using Power BI and need to identify trends over time. I’ve tried adding trend lines but they either don’t show up or don’t reflect the actual pattern. How can I properly add and customize … Read more

How to group data by table columns in Power BI?

“I’m working with sales data in Power BI and need to group transactions by product category and month to show total sales. I’ve tried using the visual grouping options but can’t get the subtotals to work correctly. How can I properly group my data to show hierarchical summaries?” While Power BI offers multiple ways to … Read more

How to extract and transform Excel data into Power BI?

As a data analyst, you need to import employee data from Excel into Power BI for reporting. In this tutorial we will dive into the basics of Power Query to extract and transform this data effectively, setting the stage for your analysis and visualization tasks. Get data from Excel to Power BI [Previous content remains … Read more

How to count rows with or without conditions in Power BI?

Here’s a common question in data analysis (details vary per industry), which i’ll answer in this tutorial: “I have a large HR dataset in Power BI, and need to create a simple dashboard showing to count the total number of employees as well as employees meeting some specific criteria. How can I create measures to … Read more

How to change column date formats in Power BI?

User Question: I’m working on a Power BI report for our HR department, and the dates in our employee database are showing up in an unfamiliar format. How can I change the date format to make it more readable for our HR team? Modify datetime formatting in Power BI In this comprehensive tutorial, we will … Read more

How to display last refresh date on my Power BI report?

As Data Analysts, we always strive to ensure our reports and dashboards are up-to-date. Displaying the last refresh date helps users trust the data they’re viewing. In this simple tutorial we will add a card displaying the last refresh time to a Power BI dashboard. As always, we will use a simple data set consisting … Read more

How to combine different columns in Power BI?

As a Data analyst, you often need to bring together cell values from entire columns or part of them. This tutorial will guide you through the process of concatenating multiple columns in Power BI, using a practical HR scenario. In this tutorial we will assume a single table named “Employees” with the following columns: EmployeeID … Read more

How to replace blank cells with text in Power BI?

How can you replace these blank values with the string “Unknown” to ensure all records are accounted for in your regional sales analysis? Replace empty cells with string in Power BI In Power BI, we can easily handle blank values using both Power Query and DAX. We will explore both methods using a fictitious ‘Customers’ … Read more