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
Anonymous
Not applicable

How do I avoid having 2 Novembers in my line chart

Hi I am filtering this chart by last 12 months i.e. 24/11/2019- 23/11/2020. Is there any way how to start from 1/11/2019? I need it as a dynamic filter, so when we move to december it should do the same for December again. 

 

Furthermore, I would like to know if it's possible to somehow use "MM" instead of "MMMM" in my chart. I am using CalendarAuto to generate this hierarchy. 

 

 

AndrejBI_0-1606118986957.png

 

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

Hi  @Anonymous ,

According to your description, I created some data October 1, 2019 to December 5, 2020 to show

v-yangliu-msft_0-1606210223419.png

1. Create measure.

all_amount =
CALCULATE(SUM('Table'[amount]),FILTER('Table','Table'[Date]<=TODAY()&&'Table'[Date]>=DATE(YEAR(TODAY())-1,MONTH(TODAY()),1)))

2. Result.

Only data from November 1, 2019 to November 24, 2020 will appear

v-yangliu-msft_1-1606210223422.jpeg

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

According to your description, I created some data October 1, 2019 to December 5, 2020 to show

v-yangliu-msft_0-1606210223419.png

1. Create measure.

all_amount =
CALCULATE(SUM('Table'[amount]),FILTER('Table','Table'[Date]<=TODAY()&&'Table'[Date]>=DATE(YEAR(TODAY())-1,MONTH(TODAY()),1)))

2. Result.

Only data from November 1, 2019 to November 24, 2020 will appear

v-yangliu-msft_1-1606210223422.jpeg

You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Of course you can start from the first of the month. Just use the EOMONTH function. Something like

 

EOMONTH( YourArchorDate, -13) + 1.

On your visual you can filter by relative date and only include items from the last 12 calendar months, which would limit the visual to include only 01/11/2019 - 31/10/2020.

 

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range 

 

 

 

 

 

amitchandak
Super User
Super User

@Anonymous , for MM you have create you own column and create custom hierarchy.

https://stoneridgesoftware.com/creating-hierarchies-in-power-bi/
https://www.youtube.com/watch?v=x6vXVJZ_eTY

 

First Ask is not very clear.

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.