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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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