<?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: Using ALL filter creates blank rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289156#M122399</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt;&amp;nbsp;in you measure COGS PU, underling table is COGS. In this table there are no data for December 2022 for SKU 20 ORDER HB, see picture below. SKU 21 for this details have data. Hope this help&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jun 2023 22:03:03 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-06-17T22:03:03Z</dc:date>
    <item>
      <title>Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3287109#M122239</link>
      <description>&lt;P&gt;&lt;A href="https://1drv.ms/u/s!As8wMr9_bgGrgjj9m8Adnx3uafo0?e=iwOnyt" target="_blank"&gt;COGS TEST HB.pbix&lt;/A&gt;&amp;nbsp;link to PBIX file&lt;/P&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have two fact tables, one with all the sales and customer data, and one which I am using to pull the COGS.&lt;BR /&gt;There is no direct link between the two tables for specific orders and customers as the intergration between the sales platform where the sales data comes from and the GL where the COGS data comes from has not been created., but the stores and SKUs are the same.&lt;/P&gt;&lt;P&gt;I want to be able to calculate the GM for each sales order. I created an inactive relationship between the two fact tables and USERELATIONSHIP in the COGS measure. This has stopped COGS appearing for all SKUs/customers when not in the sales order. However, there are some instances when the invoice dates are different ,so there is no COGS data for that store and month and SKU.&lt;/P&gt;&lt;P&gt;If I remove the date filter using ALL, then values are returned for months with no orders, likewise if I use an average. HOw can I create a COGS pu measure that I can use when using columns from the Sales table? The ideal result would be the COGS PU US RELATIONSHIP MONTH table with out any blank COGS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 03:17:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3287109#M122239</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2023-06-16T03:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289156#M122399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt;&amp;nbsp;in you measure COGS PU, underling table is COGS. In this table there are no data for December 2022 for SKU 20 ORDER HB, see picture below. SKU 21 for this details have data. Hope this help&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 22:03:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289156#M122399</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-17T22:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289351#M122406</link>
      <description>&lt;P&gt;Hi, thanks for your reply, that is the problem that I am trying to fix, when there is no data in the underlying table for that SKU and Month, I want to pull the average COGS per unit for that SKU, so that there is a COGS value and we can still calculate a gross margin. This happens in the odd occasion because the GL date can be 1 day behind the subledger date or vice versa, thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 05:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289351#M122406</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2023-06-18T05:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289361#M122408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try replacing date from dimdate with date from factsales and format it as "Mmm yyyy"&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 06:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289361#M122408</guid>
      <dc:creator>rautaniket0077</dc:creator>
      <dc:date>2023-06-18T06:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289472#M122410</link>
      <description>Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt; part "to pull the average COGS per unit for that SKU" as there are no actuals for month December there is no average amount! In your table (marked with yellow above part" some details are from two tables, like fact and SKU. Why do you need table SKU ast there are just two values? I am not aware why, but the best would be to organize your model to have one fact table. Did you try to use SKU column in table, from Fact table? Also, having two fact tables, is not best practice as there is many to many relationships between fact and COGS table. Even, in this complex model (not according to best practice), the question is what average you want to get in case there is blank as current. I suggest to go to your model, granularity of data should be considered and create single fact table. I agree, the best would be to have data on transaction level. Still, if your workflow could not provide COGS data, you will need some alternative workaround to get some data (like average). Hope this help</description>
      <pubDate>Sun, 18 Jun 2023 13:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289472#M122410</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-18T13:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289699#M122431</link>
      <description>&lt;P&gt;Thanks, unfortunately the COGS data and the sales data comes from different systems so there has to be two fact tables. IF there is no data for the month due to timing mistmatch, I want to pull the average COGS for that SKU as we still need to report a GM for that sale. Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 21:31:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3289699#M122431</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2023-06-18T21:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3290073#M122444</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt;&amp;nbsp;you are on good way to resolve this. take a time&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 05:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3290073#M122444</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-19T05:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3290630#M122478</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354807" data-lia-user-login="watje255_ju" class="lia-mention lia-mention-user"&gt;watje255_ju&lt;/a&gt;&amp;nbsp;you are on good way to resolve this. take a time&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 09:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3290630#M122478</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-19T09:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3299482#M123010</link>
      <description>Awesome, thanks so much!</description>
      <pubDate>Fri, 23 Jun 2023 09:44:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3299482#M123010</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2023-06-23T09:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL filter creates blank rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3299483#M123011</link>
      <description>Awesome, thanks so much!</description>
      <pubDate>Fri, 23 Jun 2023 09:44:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-filter-creates-blank-rows/m-p/3299483#M123011</guid>
      <dc:creator>watje255_ju</dc:creator>
      <dc:date>2023-06-23T09:44:15Z</dc:date>
    </item>
  </channel>
</rss>

