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
RikMertens
Frequent Visitor

Possible to display data from the 'last 12 months' with months in the correct order?

I have a data set on which i want to do a 'count by month'. I have a date field so i can filter on year / month.

 

When i filter out the data from the past 12 months i want the months in the correct oder:

 

APR17 - MAY17 - JUN17- JUL17 - AUG17 - SEP17 - OCT17 - NOV17 - DEC17 - JAN18 - FEB18 - MAR18

 

Is there a quick way to do this in power BI?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @RikMertens,

 

You can try to use slicer with 'relative' mode, it support to filter with specific date period.

Use a relative date slicer or filter in Power BI Desktop - Microsoft Docs

 

If you use text column as axis , you can try to use sort by column feature to point date column as default sort order.

Sort by column in Power BI Desktop - Power BI | Microsoft Docs

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @RikMertens,

 

You can try to use slicer with 'relative' mode, it support to filter with specific date period.

Use a relative date slicer or filter in Power BI Desktop - Microsoft Docs

 

If you use text column as axis , you can try to use sort by column feature to point date column as default sort order.

Sort by column in Power BI Desktop - Power BI | Microsoft Docs

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
RikMertens
Frequent Visitor

I have a data set on which i want to do a 'count by month'. I have a date field so i can filter on year / month.

 

When i filter out the data from the past 12 months i want the months in the correct oder:

 

APR17 - MAY17 - JUN17- JUL17 - AUG17 - SEP17 - OCT17 - NOV17 - DEC17 - JAN18 - FEB18 - MAR18

 

Is there a quick way to do this in power BI?

I found this video using "Periods" and Sort by Column that I believe will help solve your issue: https://www.youtube.com/watch?v=kAxHRD7Lq7I

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.