<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Goals per Customer portfolio in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Goals-per-Customer-portfolio/m-p/3652221#M141488</link>
    <description>&lt;P&gt;Please try this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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])
        )
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 22 Jan 2024 17:17:13 GMT</pubDate>
    <dc:creator>mtayyab07</dc:creator>
    <dc:date>2024-01-22T17:17:13Z</dc:date>
    <item>
      <title>Goals per Customer portfolio</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Goals-per-Customer-portfolio/m-p/3651991#M141479</link>
      <description>&lt;P&gt;Hi friends,&lt;BR /&gt;&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;Each portfolio has a goal that is in the "Fact_Goals" goal table&lt;/P&gt;&lt;P&gt;I need a single DAX measure that calculates the target for each portfolio.&lt;BR /&gt;If the scope is "Portfolio1 Name", then calculate the goals of all portfolios of type "Portfolio1 Name".&lt;/P&gt;&lt;P&gt;If the scope is "Portfolio2 Name", then calculate the goals of all portfolios of type "Portfolio2 Name".&lt;/P&gt;&lt;P&gt;If the scope is "Portfolio3 Name", then calculate the goals of all portfolios of type "Portfolio3 Name".&lt;/P&gt;&lt;P&gt;I only use the information from the 'Dim_Customer_portfolio" table in the visuals.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:11:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Goals-per-Customer-portfolio/m-p/3651991#M141479</guid>
      <dc:creator>Rai_BI</dc:creator>
      <dc:date>2024-01-22T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Goals per Customer portfolio</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Goals-per-Customer-portfolio/m-p/3652221#M141488</link>
      <description>&lt;P&gt;Please try this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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])
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Jan 2024 17:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Goals-per-Customer-portfolio/m-p/3652221#M141488</guid>
      <dc:creator>mtayyab07</dc:creator>
      <dc:date>2024-01-22T17:17:13Z</dc:date>
    </item>
  </channel>
</rss>

