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
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

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.