Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
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])
)
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |