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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Rck7
Helper II
Helper II

How can I make my column chart to shift automatically right to left showing the current year data?

Hi Friends,

I am working on my column chart where I need to display the current contract year months automatically shifting the past year values right to left, when ever a new contract year starts without using any Date slicers.

Note: My contract year starts & end from- [27/October to 26/October] every year.   

For example:

 The chart below, shows the data from 27/OCT/2016 - 26/OCT/2017. Once I load the data from 27/OCT/2017(i.e. in the coming weeks) in to my data table, I want my chart to shift the past year and show the monthly data for the current year starting 27/OCT/17 until 26/OCT/2018 and follow the same process for future years.

How would I be able to achieve it? 

Chart: 
1.png

 
File: https://www.dropbox.com/s/ehkkuluwobo121g/Fiscal_Year_Comparisions.pbix?dl=0

Any help would be appreciated!!!!!
Thank you.

2 ACCEPTED SOLUTIONS
v-qiuyu-msft
Community Support
Community Support

Hi @Rck7,

 

You can create a measure below. It will filter UseageDate when it's greater or equal to the latest 10/27. Replace the chart value as this measure. You can see attached pbix file. 

 

Measure = var latestContract=CALCULATE(MAX('TokenRecords'[UsageDate]),FILTER(ALL(TokenRecords),MONTH('TokenRecords'[UsageDate])=10 && DAY('TokenRecords'[UsageDate])=27))
return
CALCULATE(SUM(TokenRecords[Tokens]),FILTER('TokenRecords','TokenRecords'[UsageDate]>=latestContract))

 

w4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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

Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

  1. Drag UsageDate to Visual level filters
  2. Select relative date filtering > in the last > 12 > calendar months > Apply Filter

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

  1. Drag UsageDate to Visual level filters
  2. Select relative date filtering > in the last > 12 > calendar months > Apply Filter

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-qiuyu-msft
Community Support
Community Support

Hi @Rck7,

 

You can create a measure below. It will filter UseageDate when it's greater or equal to the latest 10/27. Replace the chart value as this measure. You can see attached pbix file. 

 

Measure = var latestContract=CALCULATE(MAX('TokenRecords'[UsageDate]),FILTER(ALL(TokenRecords),MONTH('TokenRecords'[UsageDate])=10 && DAY('TokenRecords'[UsageDate])=27))
return
CALCULATE(SUM(TokenRecords[Tokens]),FILTER('TokenRecords','TokenRecords'[UsageDate]>=latestContract))

 

w4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.