<?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: InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date])) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244738#M168057</link>
    <description>&lt;P&gt;I have already done it, but it still doesn't work&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 11:41:55 GMT</pubDate>
    <dc:creator>hongdao</dc:creator>
    <dc:date>2024-10-16T11:41:55Z</dc:date>
    <item>
      <title>InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date]))</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4243540#M168006</link>
      <description>&lt;P&gt;I am learning how to implement tabular models using the InternetSales dataset from AdventureWorksDW2019 through the link &lt;A href="https://learn.microsoft.com/en-us/analysis-services/tutorial-tabular-1400/as-lesson-6-create-measures?view=asallproducts-allversions" target="_new" rel="noopener"&gt;&lt;SPAN&gt;https&lt;/SPAN&gt;&lt;SPAN&gt;://learn&lt;/SPAN&gt;&lt;SPAN&gt;.microsoft&lt;/SPAN&gt;&lt;SPAN&gt;.com&lt;/SPAN&gt;&lt;SPAN&gt;/en&lt;/SPAN&gt;&lt;SPAN&gt;-us&lt;/SPAN&gt;&lt;SPAN&gt;/analysis&lt;/SPAN&gt;&lt;SPAN&gt;-services&lt;/SPAN&gt;&lt;SPAN&gt;/tutorial&lt;/SPAN&gt;&lt;SPAN&gt;-tabular&lt;/SPAN&gt;&lt;SPAN&gt;-1400&lt;/SPAN&gt;&lt;SPAN&gt;/as&lt;/SPAN&gt;&lt;SPAN&gt;-lesson&lt;/SPAN&gt;&lt;SPAN&gt;-6&lt;/SPAN&gt;&lt;SPAN&gt;-create&lt;/SPAN&gt;&lt;SPAN&gt;-measures&lt;/SPAN&gt;&lt;SPAN&gt;?view&lt;/SPAN&gt;&lt;SPAN&gt;=asallproducts&lt;/SPAN&gt;&lt;SPAN&gt;-allversions&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the steps in the tutorial, but in Lesson 6: Create Measures, when I input the formula '&lt;STRONG&gt;InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date]))&lt;/STRONG&gt;', the result for InternetPreviousQuarterMargin shows as blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve checked the previous steps from the tutorial, but I haven’t been able to resolve the issue. I’m wondering if anyone else has faced this situation and can guide me on how to fix it. Thank you.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 18:48:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4243540#M168006</guid>
      <dc:creator>hongdao</dc:creator>
      <dc:date>2024-10-15T18:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date]))</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244295#M168038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="825706" data-lia-user-login="hongdao" class="lia-mention lia-mention-user"&gt;hongdao&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Regarding your question, you are using the time smart function, which requires consecutive and unique date columns. Make sure step 3 of the documentation is correct.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;What is the specific expression for this metric? Which table is it calculated for? Depending on the direction in which the filter is passed, the date dimension table can only filter data from table 'FcatInternalSales'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 07:42:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244295#M168038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-16T07:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date]))</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244301#M168039</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="825706" data-lia-user-login="hongdao" class="lia-mention lia-mention-user"&gt;hongdao&lt;/a&gt;&amp;nbsp;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Verify that&amp;nbsp;the date column in the 'DimDate' table is set to the "Date" data type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 07:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244301#M168039</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2024-10-16T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date]))</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244738#M168057</link>
      <description>&lt;P&gt;I have already done it, but it still doesn't work&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 11:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244738#M168057</guid>
      <dc:creator>hongdao</dc:creator>
      <dc:date>2024-10-16T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: InternetPreviousQuarterMargin:=CALCULATE([InternetTotalMargin], PREVIOUSQUARTER('DimDate'[Date]))</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244746#M168058</link>
      <description>&lt;P&gt;I created the column &lt;STRONG&gt;InternetTotalMargin = SUM([Margin])&lt;/STRONG&gt;, where the &lt;STRONG&gt;Margin&lt;/STRONG&gt; column is calculated as &lt;STRONG&gt;[SalesAmount] - [TotalProductCost]&lt;/STRONG&gt; in the &lt;STRONG&gt;FactInternetSales&lt;/STRONG&gt; table&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 11:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/InternetPreviousQuarterMargin-CALCULATE-InternetTotalMargin/m-p/4244746#M168058</guid>
      <dc:creator>hongdao</dc:creator>
      <dc:date>2024-10-16T11:44:59Z</dc:date>
    </item>
  </channel>
</rss>

