<?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 How to force one-side of relationship to appear when there is no corresponding record on many side. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694088#M34849</link>
    <description>&lt;P&gt;I have the following tables:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure &lt;EM&gt;Latest Sales&lt;/EM&gt; correctly gives me the latest sum for each Sales Person:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Latest Sales = 
    VAR MaxKnownDate =
        MAX ( Sales[DateOfSale] )
        
    VAR SalesSummaryBase =
        SUMMARIZE (
            'SalesPerson'
            ,'SalesPerson'[Name]
        )
        
      VAR SalesSummary =
        CALCULATETABLE (
            ADDCOLUMNS (
                SalesSummaryBase,
                  "Latest Count", 
                    CALCULATE (
                        SUM ( Sales[Amount] ),
                        LASTNONBLANK (
                            'Date'[Date],
                            COUNTROWS(RELATEDTABLE(Sales))
                        )
                    )
            )
            ,FILTER (
                ALL ( Sales[DateOfSale] ),
                Sales[DateOfSale] &amp;lt;= MaxKnownDate
            )
        )       

    VAR Result =
        SUMX(SalesSummary, [Latest Count])

    RETURN
        Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here's the result:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Sales Person Id&amp;nbsp; &amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; &amp;nbsp;Latest Sales&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Joe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $5&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $22&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mary&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $65&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Sales Person slicer shows all Sales Persons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sales person Susie does not appear in the report because there are no sales record for Susie. How can I force Susie to show up on the report under the Sales Person ID column with an amount of $ 0.00? How should modify my measure to achieve that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2021 04:32:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-28T04:32:07Z</dc:date>
    <item>
      <title>How to force one-side of relationship to appear when there is no corresponding record on many side.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694088#M34849</link>
      <description>&lt;P&gt;I have the following tables:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure &lt;EM&gt;Latest Sales&lt;/EM&gt; correctly gives me the latest sum for each Sales Person:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Latest Sales = 
    VAR MaxKnownDate =
        MAX ( Sales[DateOfSale] )
        
    VAR SalesSummaryBase =
        SUMMARIZE (
            'SalesPerson'
            ,'SalesPerson'[Name]
        )
        
      VAR SalesSummary =
        CALCULATETABLE (
            ADDCOLUMNS (
                SalesSummaryBase,
                  "Latest Count", 
                    CALCULATE (
                        SUM ( Sales[Amount] ),
                        LASTNONBLANK (
                            'Date'[Date],
                            COUNTROWS(RELATEDTABLE(Sales))
                        )
                    )
            )
            ,FILTER (
                ALL ( Sales[DateOfSale] ),
                Sales[DateOfSale] &amp;lt;= MaxKnownDate
            )
        )       

    VAR Result =
        SUMX(SalesSummary, [Latest Count])

    RETURN
        Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here's the result:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Sales Person Id&amp;nbsp; &amp;nbsp; &amp;nbsp; Name&amp;nbsp; &amp;nbsp; &amp;nbsp;Latest Sales&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Joe&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $5&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $22&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mary&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $65&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Sales Person slicer shows all Sales Persons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sales person Susie does not appear in the report because there are no sales record for Susie. How can I force Susie to show up on the report under the Sales Person ID column with an amount of $ 0.00? How should modify my measure to achieve that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 04:32:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694088#M34849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-28T04:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to force one-side of relationship to appear when there is no corresponding record on many side.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694137#M34853</link>
      <description>&lt;P&gt;You can try adding zero to measure - which turns blank into 0?&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Return&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Result + 0&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 08:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694137#M34853</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-02-28T08:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to force one-side of relationship to appear when there is no corresponding record on many side.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694167#M34855</link>
      <description>&lt;P&gt;Brialliant! Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 10:26:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-force-one-side-of-relationship-to-appear-when-there-is-no/m-p/1694167#M34855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-28T10:26:29Z</dc:date>
    </item>
  </channel>
</rss>

