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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Rai_BI
Helper IV
Helper IV

Goals per Customer portfolio

Hi friends,

I have a table with the customer portfolio called "Dim_Customer_portfolio" and in this table there are three different types of customer portfolios which are 1, 2 and 3. As you can see in the attached image.

Each portfolio has a goal that is in the "Fact_Goals" goal table

I need a single DAX measure that calculates the target for each portfolio.
If the scope is "Portfolio1 Name", then calculate the goals of all portfolios of type "Portfolio1 Name".

If the scope is "Portfolio2 Name", then calculate the goals of all portfolios of type "Portfolio2 Name".

If the scope is "Portfolio3 Name", then calculate the goals of all portfolios of type "Portfolio3 Name".

I only use the information from the 'Dim_Customer_portfolio" table in the visuals.

Sem título.png



1 REPLY 1
mtayyab07
Frequent Visitor

Please try this measure:

CalculatePortfolioGoal = 
SUMX(
    VALUES('Dim_Customer_portfolio'[Customer ID]),
    CALCULATE(
        SUM('Fact_Goals'[Goal]),
        FILTER(
            'Fact_Goals',
            'Fact_Goals'[Portfolio ID] IN VALUES('Dim_Customer_portfolio'[Portfolio1 ID])
            || 'Fact_Goals'[Portfolio ID] IN VALUES('Dim_Customer_portfolio'[Portfolio2 ID])
            || 'Fact_Goals'[Portfolio ID] IN VALUES('Dim_Customer_portfolio'[Portfolio3 ID])
        )
    )
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.