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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
T_JF2022
Frequent Visitor

Year table with columns from different tables

I have created a forecast based on open orders and closed orders for the entire business year.
The sales are broken down by month (i.e. jan, feb, march etc).
I would like to replace the calculated values of the future months with a projection. (replace column april with the values of the projection)

 

But I don't know how to replace the values so that the expected sales for the year 2022 is reached.

 

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @T_JF2022 ,

According to your description, I create a sample.

vkalyjmsft_0-1646118741260.png

Here's my solution.

Assuming that forecast is the average of the previous values.

Forecast = AVERAGEX(ALL('Table'),'Table'[Sales])

Create a measure.

Sales' =
IF (
    MAX ( 'Table'[Sales] ) <> BLANK (),
    MAX ( 'Table'[Sales] ),
    'Table'[Forecast]
)

Get the result.

vkalyjmsft_1-1646118945622.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @T_JF2022 ,

According to your description, I create a sample.

vkalyjmsft_0-1646118741260.png

Here's my solution.

Assuming that forecast is the average of the previous values.

Forecast = AVERAGEX(ALL('Table'),'Table'[Sales])

Create a measure.

Sales' =
IF (
    MAX ( 'Table'[Sales] ) <> BLANK (),
    MAX ( 'Table'[Sales] ),
    'Table'[Forecast]
)

Get the result.

vkalyjmsft_1-1646118945622.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

amitchandak
Super User
Super User

@T_JF2022 , refer if the blog or file can help

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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