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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JMHenriques
Frequent Visitor

EAC - Calculate different series based on actuals availability

Hi everyone,

 

So... I have a table with a product that has 2 series, actual cost and forecasted cost.

 

MonthProductSerieCost
JanuaryXYZForecast311
JanuaryXYZActual465
FebruaryXYZForecast357
FebruaryXYZActual167
MarchXYZForecast372
MarchXYZActual112
AprilXYZForecast457
AprilXYZActual0
MayXYZForecast314
MayXYZActual0
JuneXYZForecast486
JuneXYZActual0
JulyXYZForecast179
JulyXYZActual0
AugustXYZForecast496
AugustXYZActual0
SeptemberXYZForecast280
SeptemberXYZActual0
OctoberXYZForecast123
OctoberXYZActual0
NovemberXYZForecast245
NovemberXYZActual0
DecemberXYZForecast345
DecemberXYZActual0

 

I want to estimate the EAC (estimation at completion) that is the actuals when available + the forecast for the rest.

 

It should be something like SUM of the actuals plus the forecast of the remaining months when actual = 0... but I cannot get to a solution that works... 

 

any help from the experts? 🙂

 

 

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

Hi @JMHenriques 

You can refer to the following measure

EAC =
VAR _sumavailableactual =
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Product]
                IN VALUES ( 'Table'[Product] )
                    && [Serie] = "Actual"
        ),
        [Cost]
    )
VAR _availableforecast =
    SUMMARIZE (
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Product]
                IN VALUES ( 'Table'[Product] )
                    && [Serie] = "Actual"
                    && [Cost] = 0
        ),
        [Month]
    )
VAR _sumfor =
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Product]
                IN VALUES ( 'Table'[Product] )
                    && [Month] IN _availableforecast
        ),
        [Cost]
    )
RETURN
    _sumavailableactual + _sumfor

Output

vxinruzhumsft_0-1682387363587.png

Best Regards!

Yolo Zhu

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
Ashish_Mathur
Super User
Super User

Hi,

Clearly show the expected result in a simple Table format.  Please share a revised table with a Year column as well.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-xinruzhu-msft
Community Support
Community Support

Hi @JMHenriques 

You can refer to the following measure

EAC =
VAR _sumavailableactual =
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Product]
                IN VALUES ( 'Table'[Product] )
                    && [Serie] = "Actual"
        ),
        [Cost]
    )
VAR _availableforecast =
    SUMMARIZE (
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Product]
                IN VALUES ( 'Table'[Product] )
                    && [Serie] = "Actual"
                    && [Cost] = 0
        ),
        [Month]
    )
VAR _sumfor =
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            [Product]
                IN VALUES ( 'Table'[Product] )
                    && [Month] IN _availableforecast
        ),
        [Cost]
    )
RETURN
    _sumavailableactual + _sumfor

Output

vxinruzhumsft_0-1682387363587.png

Best Regards!

Yolo Zhu

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

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.