cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PDRTXRA
Helper I
Helper I

Date Grouping and Sorting

Hello.

I have a table with different dates.

 

I need to group these dates based on month and period, meaning:


Period 1 - From July 2020 to June 2021

Period 2 - From July 2021 to June 2022

 

Then, I want to have different graphs with sales per period and drillthrough to see sales per month.

But I want the graph to be ordered by Period when maxed out and after I drill, to be ordered from July to June.

 

What is the best method to accomplish this?

Thank you.

1 REPLY 1
johncolley
Super User
Super User

Hi @PDRTXRA , The best method to accomplish this is to create a Date table. Establish a relationship between the Date table and your Sales date. And then use the columns from the date table such as Financial Year and Month in your visuals.

 

There are plenty of resources online detailing how to create a date table. Here is one example: https://radacad.com/power-bi-date-or-calendar-table-best-method-dax-or-power-query 

 

If this answer solves your problem please mark it as a solution!

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors