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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
chayanupadhyay
Helper III
Helper III

Show Current date + 7 in X-Axis on Line and stacked chart

Hello All,

 

 How can i show Current Date and Current date + 7 in X-Axis of Line and Stacked Column Chart.

For example, today's date is 26th Sept so X- Axis should show 26,27,28,29,30,1,2. It should show 7 days in X- Axis starting from Current date.

Basically my requirement is to see data in Line and Stacked Column chart for next 7 days starting from Current date.

I am using Azure Analysis service as source and connected to AAS using Live Connection.

 

Thank You !!

 

6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @chayanupadhyay,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @chayanupadhyay,

 

I tested it with SQL Server live connection. It should work with Azure Analysis Service. 

1. You need a date table (at least 7 more days from today).

2. Do as the picture showed.

Show Current date + 7 in X-Axis on Line and stacked chart .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Any problem, please post here.

 

Best Regards!

Dale

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

Hi @chayanupadhyay,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

Best Regards!
Dale

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

@v-jiascu-msft Thank you for your response and apologies for delay.

As of now we have calculated effective date (again which is not current date + 7) but the dates which are appearing in next 7 days (using DAX date >= currentdate && date <= currentdate +7) which we restricted in our backed and instead of relative slicer we have showen in slicer as List.

I am looking for any slicer which can have facility to select only next days like in relative slicer we do have functionality to select Next, Last and this.

We do have calender dimension but not sure how to use to calender dimension and pick out today to today +7 and not sure whether data will be shown according to that dates, but surely whenever i will try that functionality, will post the outcome.

Thank you again for your help !! 

 

Hi @chayanupadhyay,

 

The slicers (or filters) will work on the actual data directly or through relationship. The build-in slicer has the Next n-day feature. The only problem could be if there are any data of the next 7 days.

Show Current date + 7 in X-Axis on Line and stacked chart.jpg 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

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

Thank you @v-jiascu-msft for your reply.

I will try to implement the approach and will post the result.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.