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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SivaMani
Resident Rockstar
Resident Rockstar

forecast data in same visual

Hi,

 

I wanted to show forecasted values along with actuals in a line chart.

Here are the details,

Relationship:

Date -> Actual Table

Date -> Forecast

Visual:

Added 'Date'[Date] in X axis and 'Actula Table'[Actuals] in Y axis.

Slicer - Between:

'Date'[Date]

 

Now I wanted to add forecast data to the visual which has data for the next 2 weeks.

 

Thanks in Advance!

 

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @SivaMani  ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @SivaMani ,

 

Based on the Cross filter direction of the relationships among three tables as Both instead of Single, you can try to create measure like DAX below.

 

Forecast 2 week= CALCULATE(SUM(Forecast[sales]),FILTER(ALLSELECTED(Date),WEEKNUM(Date[Date]) =WEEKNUM(MAX(Date[Date]))+2))

 

Best Regards,

Amy

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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