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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
adamcairns
New Member

Display data from most recent 3 months? (new data refreshed into dashboard monthly)

Hi all,

 

Unsure if this is a feature within Power BI (or maybe this can be calculated within the Excel spreadsheet), but I would like to display data from the most recent 3 months when I refresh my data dashboard. I have a Power Automate workflow set up which gathers the data from a Microsoft Forms survey and saves it within an Excel spreadsheet on SharePoint. I refresh my data dashboard to display the monthly results for other data, but I would like to display the data from the most recent 3 months in one of my visuals (it is a basic visual displaying feedback in a 'Gauge' chart).

 

For example, for my June end monthly dashboard, I would like to display data from the months of April, May, & June.

Then, for my July end monthly dashboard, I would like to display data from the months of May, June, & July. And so on...

 

I have attached a very basic example table below which displays the way the dates are stored in the Excel spreadsheet. I can also provide more info for this question if need be! Thanks in advance!


DateDid you enjoy the event?Did you find the event useful?Any suggestions?
10/01/2023YesYesMore content
17/01/2023YesYesMore content
04/02/2023YesNoMore speakers
21/02/2023NoYesNo
22/02/2023NoYesMore speakers
15/03/2023NoYesNo
19/03/2023NoNoNo
28/04/2023YesNoLonger session
29/04/2023NoYesMore content

01/05/2023

Yes

No

More content

07/05/2023

Yes

No

More speakers

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @adamcairns ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

Flag = 
var _end=EOMONTH(TODAY(),-2)
var _start= DATE(YEAR(_end),MONTH(_end),1)
return IF(MAX('Table'[Date])<=TODAY() && MAX('Table'[Date]) >= _start,1,0)

(3) Then the result is as follows.

vtangjiemsft_0-1687919305521.png

When you perform a data refresh and the underlying data changes, the visual object displays only today's data from three months ago.

 

Best Regards,

Neeko Tang

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

1 REPLY 1
Anonymous
Not applicable

Hi @adamcairns ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

Flag = 
var _end=EOMONTH(TODAY(),-2)
var _start= DATE(YEAR(_end),MONTH(_end),1)
return IF(MAX('Table'[Date])<=TODAY() && MAX('Table'[Date]) >= _start,1,0)

(3) Then the result is as follows.

vtangjiemsft_0-1687919305521.png

When you perform a data refresh and the underlying data changes, the visual object displays only today's data from three months ago.

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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