Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Solution Sage
Solution Sage

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.