Power BI Date Slicer by Month: How to Use It

A sales manager opens a monthly dashboard and wants a quick answer: “How did March perform compared with February?” In many early Power BI reports, the date filter shows every single day. That creates a long, messy list that users avoid.

I have seen this issue often when teams move from Excel reports to a proper Power BI sales dashboard. A clean month slicer gives users a familiar way to explore revenue, orders, profit, and KPIs without touching the underlying data.

This practical Power BI tutorial shows how to build a reliable Power BI date slicer by month, sort it correctly, connect it to visuals, and avoid common date-model mistakes.

Why Use a Power BI Date Slicer by Month?

A Slicer is a visual filter that lets report users choose values directly on the report canvas. When users select a month, Power BI filters connected visuals such as cards, bar charts, tables, and line charts.

For a retail sales dashboard, a monthly slicer helps a regional manager focus on one period without creating separate report pages. They can select January to review the new-year campaign, then switch to December to check holiday performance.

A month slicer works best when users ask questions like these:

  • What were total sales in April?
  • Which product category performed best last month?
  • Did the South region meet its monthly target?
  • How do current-month sales compare with the same month last year?
  • Which month had the highest profit?

The most important point is this: do not build the slicer directly from a random date column if the report will grow. Create a dedicated Date table first. A Date table is a separate table that contains one row per calendar date and supports consistent time-based analysis.

Power BI Date Slicer by Month: Example Setup

For this guide, I will use a sales dashboard for a mid-sized retail company. The company stores transaction data in an Excel file, but the same approach works with SharePoint Online, SQL Server, Dataverse, and other sources.

The main table is called Sales and includes these columns:

ColumnExample valuePurpose
OrderDate2026-03-15Date when the sale happened
SalesAmount1250Revenue from the transaction
ProductCategoryElectronicsProduct grouping
RegionEastSales territory
OrderIDSO-10245Unique order reference

Start by loading the table into Power BI Desktop.

  1. Open Power BI Desktop.
  2. Select Get data from the Home ribbon.
  3. Choose Excel workbook if your data comes from an Excel file.
  4. Select the worksheet or table that contains the sales data.
  5. Click Load.
How to Create a Power BI Date Slicer by Month and Year

Before you add a slicer, check the OrderDate column. Select the column in Data view, open Column tools, and confirm that its data type is Date or Date/Time.

A date stored as text creates many problems. Power BI may display it in the wrong format, sort it incorrectly, or fail to calculate year-over-year measures.

Create a Proper Date Table in Power BI

A dedicated Date table gives every report visual a single, consistent calendar. It also lets you add useful fields such as Month Name, Month Number, Quarter, and Year-Month.

In Modeling, select New table and enter this DAX formula:

Date =
ADDCOLUMNS(
    CALENDAR(
        MIN(Sales[OrderDate]),
        MAX(Sales[OrderDate])
    ),
    "Year", YEAR([Date]),
    "Month Number", MONTH([Date]),
    "Month Name", FORMAT([Date], "MMMM"),
    "Month Short Name", FORMAT([Date], "MMM"),
    "Year Month", FORMAT([Date], "YYYY-MM"),
    "Year Month Sort", YEAR([Date]) * 100 + MONTH([Date]),
    "Quarter", "Q" & FORMAT([Date], "Q")
)
Power BI Date Slicer by Month Step-by-Step Guide

This formula creates one date row for every day between the earliest and latest order dates in the Sales table.

The added columns make the table useful for reporting:

  • Year returns the calendar year, such as 2026.
  • Month Number returns values from 1 to 12.
  • Month Name returns full names such as January and February.
  • Month Short Name returns shorter labels such as Jan and Feb.
  • Year Month creates labels such as 2026-03.
  • Year Month Sort creates a numeric sorting value such as 202603.
  • Quarter creates labels such as Q1 and Q2.

Next, mark it as a Date table.

  1. Select the Date table in the Fields pane.
  2. Open Table tools.
  3. Select Mark as date table.
  4. Choose the Date[Date] column.
  5. Click OK.
How to Filter Power BI Reports by Month and Year

This tells Power BI that the table is your official reporting calendar. It matters when you use time-intelligence DAX measures such as year-to-date sales or same-period-last-year sales.

Pro Tip: I always create a Date table even for small reports. A report may start with one chart and one slicer, but it often grows into a multi-page dashboard. A clean date dimension prevents rework later.

Create the Relationship in Power BI

A relationship connects tables in the Data model. In this example, the Date table must filter the Sales table through the order date.

  1. Open Model view from the left navigation.
  2. Drag Date[Date] onto Sales[OrderDate].
  3. Confirm that the relationship has these settings:
    • Cardinality: One to many (1:)
    • Cross-filter direction: Single
    • Relationship active: Enabled
  4. Select OK.
How to Add a Month and Year Slicer in Power BI

The Date table should sit on the “one” side because every date appears only once. The Sales table belongs on the “many” side because multiple sales may happen on the same day.

This design follows a simple star schema. A star schema places transaction data in a central fact table, such as Sales, and connects it to lookup tables, such as Date, Product, Customer, and Region. It makes filters predictable and simplifies DAX measures.

Sort Month Names Correctly in Power BI

If you add Month Name to a slicer now, Power BI may sort the values alphabetically:

  • April
  • August
  • December
  • February

That order looks wrong because it ignores the calendar sequence. Fix this by sorting the month names with the numeric month field.

  1. Select the Month Name column in the Date table.
  2. Open Column tools.
  3. Select Sort by column.
  4. Choose Month Number.
How to Create a Monthly Date Filter in Power BI

Now Power BI will show January through December in the correct order.

However, a Month Name slicer alone has one important limitation. If your report contains data for multiple years, selecting “March” combines March 2025, March 2026, and every other March in your model.

That may be useful for seasonal analysis, but it is usually not what a sales manager expects. For normal monthly reporting, use Year Month instead.

Select Date[Year Month], then choose Sort by column and select Date[Year Month Sort]. This creates a slicer with values such as:

  • 2025-11
  • 2025-12
  • 2026-01
  • 2026-02
  • 2026-03

This format clearly identifies the month and year.

Add the Power BI Date Slicer by Month

Now add the interactive filter to the sales dashboard.

  1. Open Report view.
  2. Select a blank part of the report canvas.
  3. Choose the Slicer visual from the Visualizations pane.
  4. Drag Date[Year Month] into the slicer Field well.
  5. Resize the slicer so users can easily read each month.
  6. Open the Format pane and set the slicer style to Dropdown or List.
Power BI Slicer by Month and Year for Interactive Reports

Use a Dropdown slicer when you have several years of data and need to save canvas space. Use a List slicer when users should quickly compare and click a few recent months.

For a compact executive dashboard, I usually use a dropdown slicer near the top-left corner. For an analyst page, I prefer a list slicer because the visible choices make exploration faster.

You can also configure the selection behavior:

  1. Select the slicer.
  2. Open Format visual.
  3. Expand Slicer settings.
  4. Turn on Single select if users should view only one month at a time.
  5. Turn off Single select if users should compare several months.
How to Sort Months Correctly in a Power BI Slicer

Turn on Select all only when users genuinely need it. Otherwise, it adds an unnecessary option and can confuse non-technical report users.

Build Visuals That Respond to the Slicer

A slicer becomes valuable when it filters useful visuals. Create a few basic DAX measures before building the report.

Select the Sales table, choose New measure, and add this formula:

Total Sales =
SUM(Sales[SalesAmount])
Power BI Date Table and Month Slicer Tutorial

This Measure adds all sales amounts in the current filter context. Filter context means Power BI automatically calculates the result based on active filters, including the selected month, region, product, or page filter.

Create an order-count measure:

Total Orders =
DISTINCTCOUNT(Sales[OrderID])
How to Create a Year Month Slicer in Power BI

This measure counts unique order IDs. It is more reliable than a basic row count when your source may contain multiple rows for one order.

Now create a prior-year measure:

Sales LY =
CALCULATE(
    [Total Sales],
    SAMEPERIODLASTYEAR(Date[Date])
)
How to Create a Sales Dashboard with Month Slicer in Power BI

The CALCULATE function changes the filter context for a measure. Here, it tells Power BI to calculate Total Sales for the same selected dates one year earlier.

Add a final measure for year-over-year change:

Sales YoY % =
DIVIDE(
    [Total Sales] - [Sales LY],
    [Sales LY]
)
How to Use Year Month Sort Column in Power BI

Format Sales YoY % as a percentage from the Measure tools ribbon.

Build these visuals on the report page:

  • A Card visual for Total Sales.
  • A second Card for Total Orders.
  • A third Card for Sales YoY %.
  • A Clustered column chart with ProductCategory on the X-axis and Total Sales on the Y-axis.
  • A Line chart with Date[Date] on the X-axis and Total Sales on the Y-axis.
  • A Bar chart with Region on the Y-axis and Total Sales on the X-axis.
  • The Year Month slicer at the top of the page.
Power BI Date Slicer with Month Name and Month Number

When a user picks 2026-03, every visual should update to show March 2026 data. This is the core value of an interactive report.

For more advanced conditional filtering, you can also use DAX FILTER with SELECTEDVALUE in Power BI. It helps when a measure needs to react differently based on one selected slicer value.

Use Month and Year Slicers Separately

Some teams prefer two slicers: one for Year and another for Month Name. This design works well when users want to compare the same month across selected years.

Add one Slicer visual with Date[Year] and another with Date[Month Name]. Because both fields come from the same Date table, they work together automatically.

For example, a user can select 2026 from the Year slicer and March from the Month slicer. The report then shows only March 2026.

This design feels familiar to people who work with Excel pivot tables. However, it needs clear labeling. A user may select a month but forget to select a year, which combines the same month across all years.

Pro Tip: In client dashboards, I use separate Year and Month slicers only when the business users ask for them. For most executive reports, one Year Month slicer causes fewer mistakes and answers the reporting question faster.

Format the Slicer for Real Users

A slicer should look like part of the dashboard, not a technical control added at the end.

Use these formatting choices:

  • Set the slicer title to Select Reporting Month.
  • Use the same font family as your KPI cards and charts.
  • Keep the slicer background subtle and easy to read.
  • Avoid very small text, especially for reports viewed in the Power BI Service.
  • Place the slicer in the same location across report pages.
  • Use clear labels such as “Reporting Month” instead of “Year Month.”

You can control whether the slicer affects every visual. Select the slicer, open the Format ribbon, and choose Edit interactions. Each visual displays icons that let you choose filtering, highlighting, or no interaction.

For example, you might allow the month slicer to filter all sales visuals but not a static instruction card.

Publish and Share the Monthly Report

After testing the report in Power BI Desktop, publish it to the Power BI Service.

  1. Save the PBIX file with a meaningful name, such as Retail Sales Dashboard.
  2. Select Publish from the Home ribbon.
  3. Sign in with your organizational account.
  4. Choose a workspace.

A workspace is a shared area in Power BI Service where teams manage reports, dashboards, datasets, permissions, and apps. Create separate workspaces for development, testing, and production if several people build reports.

After publishing, open the report in the Power BI Service and test the slicer again. Check the report in a browser and on a smaller screen. A slicer that looks perfect in Desktop may need resizing for users on laptops.

If users need data outside the report, review how to export Power BI data to Excel without breaking reporting governance.

You can also embed a published report in a customer-facing portal. For example, this guide on displaying Power BI reports in Power Pages is useful when a secure external portal needs interactive reporting.

Useful Tips

  • Use a dedicated Date table: Do not rely on scattered date columns in multiple fact tables. A single calendar keeps filtering and time intelligence consistent.
  • Sort month labels by numbers: Month names sort alphabetically unless you use Sort by column with Month Number.
  • Avoid Month Name by itself: “January” without a year combines data from every January. Use Year Month for regular monthly reporting.
  • Keep relationships simple: Use a one-to-many relationship from Date to Sales. Avoid many-to-many date relationships unless you fully understand the business scenario.
  • Use measures for KPIs: Build Total Sales, Total Orders, and growth metrics as Measures, not calculated columns. Measures respond to slicers and use less model storage.
  • Secure sensitive data: Use Row-Level Security when regional managers should only see their own territory’s sales. A slicer controls analysis; it does not provide security.

Frequently Asked Questions

How do I create a month slicer in Power BI?

Add a Slicer visual and drag a month-related field into it. For multi-year data, use a Year Month column from a Date table instead of Month Name alone. Sort that field with a numeric Year Month Sort column.

Why are months in alphabetical order in my Power BI slicer?

Power BI treats month names as text, so it sorts them alphabetically by default. Select the Month Name column, choose Sort by column, and select a Month Number column containing values from 1 to 12.

Can I filter Power BI by month and year?

Yes. Use one Year Month slicer, or add separate slicers for Year and Month Name. A single Year Month slicer usually gives clearer results because it prevents users from mixing the same month across different years.

How do I show only the latest month in a Power BI slicer?

Use a relative date filter for rolling periods, or create a DAX flag that identifies the latest available month. Then apply that flag as a visual-level filter on the slicer. This approach works well for reports that refresh frequently.

Why does my month slicer not filter other visuals?

First, confirm that the Date table has an active relationship to your Sales table. Next, use Edit interactions to check whether the slicer filters each visual. Also confirm that visuals use measures and fields connected to the same data model.

Do I need a Date table for a Power BI date slicer by month?

A simple report may work without one, but a Date table is the better choice for production reports. It supports correct sorting, consistent date filtering, and time-intelligence measures such as prior-year sales.

A Power BI date slicer by month becomes reliable when it uses a proper Date table, a clean relationship, and correctly sorted Year Month labels. Build the slicer around Year Month for daily business reporting, then use measures to let every KPI and visual respond to the selected period. I hope you found this article helpful.

You May Also Like

⏰ LIMITED-TIME OFFER

Join the SharePoint & Power Platform Developer Live Training

📅 Live training starts October 5, 2026
SharePoint Development
Power Apps & Power Automate
Copilot Studio
🎁
FREE 1-Year Access to SPGuides.Academy

Enroll now and get access to all 9 academy courses at no extra cost.

Secure your seat before the batch fills up.
Get the live training plus the complete SPGuides.Academy learning library.

Enroll Now & Get Your FREE 1-Year Academy Access → View live training details and schedule
Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Live Webinar

SharePoint Integration Power Apps Form With Repeating Table [Invoice Management System]

Learn how to build an invoice management system using SharePoint integration and a repeating table.

📅 2nd September 2026 – 10:00 AM EST | 7:30 PM IST

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App