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
AshDil
Helper V
Helper V

Want to show actual values till previous month and forecast values from current month

Hi,

 

I have actual sales till current month(i.e,Aug 2021) in one table and forecast values from previous month(i.e,Jul 2021) to  Dec 2021 in another table. I have created relationships between the tables and calendar table. I want to show actual values till previous month (i.e, Jul 2021) and forecast values from current month (i.e, Aug 2021) to Dec 2021 in one bar graph. 

 

Please help me to do.

 

Thanks,

AshDil.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AshDil , Try a measure like

 

calculate(sum(sales[Sales]), filter(Date, Date[Date] <= eomonth(today(),1-))) + calculate(sum(forecast[Sales]), filter(Date, Date[Date] > eomonth(today(),1-)))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@AshDil , Try a measure like

 

calculate(sum(sales[Sales]), filter(Date, Date[Date] <= eomonth(today(),1-))) + calculate(sum(forecast[Sales]), filter(Date, Date[Date] > eomonth(today(),1-)))

Hi @amitchandak ,

It worked by replacing 1- with -1. Thanks for your help.

Thanks,

AshDil.

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.