cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Chart filtered for last two weeks and next two weeks

I am looking to create a line chart which shows the orders delivered for a each store for the last two weeks as well as a dotted line showing theexpected sales for the next two weeks (which is based on an estimated delivery date measure). How would I do this?

2 REPLIES 2
Community Support Team
Community Support Team

Re: Chart filtered for last two weeks and next two weeks

@Anonymous,

 

You may try using IF Function to add two measures.

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

Re: Chart filtered for last two weeks and next two weeks

I am actually looking for something like this.

 

solid and dotted line chart.PNG

 

I found this in another thread, but it doesn't really specify how it is done. The only way I can think of this working is this:

 

Remove the attribute from the legend, and instead create separate measure filtering for each value in that attribute. And for each value, create two measures, one with an if condition filtering for two weeks in the past and one with an if condition filtering for the next two weeks. Then for each, set one of the measures as a solid line and one as a dotted line.

 

Is this the best way to do it or is there a more simple way?

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 168 members 1,819 guests
Please welcome our newest community members: