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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Is it possible to display data for last 6 days and future 6 days together

Dear All,

 

I am having a set of data that has data related to past few weeks and some predictions for future weeks.

 

Is it possible to include the data for both future and the past in the same visual, could be a Matrix, Table or a Column chart.

 

Thanks

4 REPLIES 4
Kishore_KVN
Super User
Super User

Hello @Anonymous You can create a measure to filter data as such and use it in the visual. 

Create a calendar table and connect it with the data table and then the Measure looks like this:

Filtering Data = 
Var L6D = DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())-6)
Var N6D = DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())+6)
Var Result = CALCULATE(SUM(Data_Table[Sales]),FILTER('Calendar','Calendar'[Date]>=L6D && 'Calendar'[Date]<=N6D))
Return
Result

 

Output looks as below. First visual for last and next 6 days only. Second visual shows entire data.

Kishore_KVN_0-1687255587251.png

 

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

 

Anonymous
Not applicable

@Kishore_KVN 

Thank you for your help. Is it possible to make it Weeks instead of days, as the date is displaying the beginning of the week?
Further, I have little confusion here... Measure should be created in Values table right?

If so, then how to add the date and Measure data in the same table?

 

Sorry for asking very silly questions.

Anonymous
Not applicable

@Kishore_KVN , I am stuck at imlementing this solution.

Could you please help/guide me. 

Or could you please share the .pbix file in which you have created, so that I can prepare my file accordingly. 

Thanks

iceparrot
Advocate II
Advocate II

Hey @Anonymous , 

I don't know how your data actually looks like but you can create a filter on your data which selects data based on today's date 6 days in the past and 6 days in the future and then use the filtered data for your visuals. 

 

Can you maybe share some demo data?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors