<?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: Filtering rows , calculating freight as a % of sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1684695#M34612</link>
    <description>&lt;P&gt;its resolved, thanks!!!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 21:41:43 GMT</pubDate>
    <dc:creator>musafasih</dc:creator>
    <dc:date>2021-02-23T21:41:43Z</dc:date>
    <item>
      <title>Filtering rows , calculating freight as a % of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1682479#M34545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;So here is my issue: I have one column for invoices, and another for transaction category. My invoice column consists of a number of invoices, for each invoice number, there could be 2 to 3 rows in the dataset, denoting different categories of transactions for the same invoice. The transaction category column consists of multiple categories, one of them being Freight costs. All invoices having Freight costs also have other transaction categories as well, but not all invoices have freight costs. I want to isolate the invoices having freight costs, but in such a way that not only the freight transactions are returned, but also other transactions associated with those invoices are returned, so that I am able to calculate freight as a percentage of sales only for invoices having freight. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 05:55:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1682479#M34545</guid>
      <dc:creator>musafasih</dc:creator>
      <dc:date>2021-02-23T05:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering rows , calculating freight as a % of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1682582#M34546</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250262" data-lia-user-login="musafasih" class="lia-mention lia-mention-user"&gt;musafasih&lt;/a&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 06:32:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1682582#M34546</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-23T06:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering rows , calculating freight as a % of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1682630#M34547</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250262" data-lia-user-login="musafasih" class="lia-mention lia-mention-user"&gt;musafasih&lt;/a&gt;&amp;nbsp;&amp;nbsp;Not sure if this is the result you want&lt;BR /&gt;Virtual Data Source&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Measure of Freight Invoice Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FreightInvoiceAmt = 
VAR _FreightInvoice =
    CALCULATETABLE (
        SUMMARIZE ( 'Table', 'Table'[Invoice#] ),
        'Table'[Category] = "Freight"
    )
RETURN
    CALCULATE (
        SUM ( 'Table'[Amount] ),
        TREATAS ( _FreightInvoice, 'Table'[Invoice#] ),
        ALLEXCEPT ( 'Table', 'Table'[Invoice#] )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://crocsconnect-my.sharepoint.com/:u:/g/personal/jazhang_crocs_com/ES8VlepgTDpCqVgAh6N4TCgBho7eQMJ1c-__Z2H3z-E8mQ?e=nACfbL" target="_self"&gt;Filtering rows , calculating freight as a % of sal....pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 07:03:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1682630#M34547</guid>
      <dc:creator>jameszhang0805</dc:creator>
      <dc:date>2021-02-23T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering rows , calculating freight as a % of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1684692#M34611</link>
      <description>&lt;P&gt;Thats exactly what I wanted! thanks alot!!!!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 21:41:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1684692#M34611</guid>
      <dc:creator>musafasih</dc:creator>
      <dc:date>2021-02-23T21:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering rows , calculating freight as a % of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1684695#M34612</link>
      <description>&lt;P&gt;its resolved, thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 21:41:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-rows-calculating-freight-as-a-of-sales/m-p/1684695#M34612</guid>
      <dc:creator>musafasih</dc:creator>
      <dc:date>2021-02-23T21:41:43Z</dc:date>
    </item>
  </channel>
</rss>

