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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
vincetaylor
Helper I
Helper I

Display data for the past one year only

Hi all 

I have a table called List of Items. I also have a column called "Creation Date". i.e. the date each item was created. 
I only want to display the last year worth of data on a column chart i.e. Today() - 365

 

But my bar chart is showing all the data from 2016. 

Question: How do I get the chart to show only data for the past one year 

prgs.JPG

prgs2.JPG

I would appreciate help with this issue.

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

Hi @vincetaylor ,

 

You could simply use Relative date filter.

9.PNG

 

Best Regards,

Jay

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

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi @vincetaylor ,

 

You could simply use Relative date filter.

9.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
ryan_mayu
Super User
Super User

@vincetaylor 

maybe you can create a new column and filter that column

Column = if('Table'[creation]>today()-365,"Yes")

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Greg_Deckler
Super User
Super User

@vincetaylor Perhaps:

Measure =
  VAR __Today = TODAY()
  VAR __EarliestDate = __Today - 365
  VAR __Date = MAX('Table'[Date])
RETURN
  IF(__Date >= __EarliestDate && __Date <= __Today,<some calculation>,BLANK())


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

Can you please clarify what is meant by the text "<some calculation>" in the last row of your solution? 

@vincetaylor That's where you would calculate something. I can't tell from your message and visual what calculation you are doing for you Value in your clustered column chart but whatever it is goes there. If you already have a measure for that, just plug the measure in for <some calculation>.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

October NL Carousel

Fabric Community Update - October 2024

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