<?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: use if to find difference between columns from specific date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2535014#M71223</link>
    <description>&lt;P&gt;it didnt work for me&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 06:02:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-24T06:02:34Z</dc:date>
    <item>
      <title>use if to find difference between columns from specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2534402#M71181</link>
      <description>&lt;P&gt;Hello, i want to find varriance = sum( tableA[cost]) - sum(tableB[cost]) .&lt;/P&gt;&lt;P&gt;i have data from before 2022, i want to use the varriance to calculate from 2022-01-28 until now while anything before just give me a 0 . so im assuming i use the if synatx?&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 21:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2534402#M71181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-23T21:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: use if to find difference between columns from specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2534642#M71202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Variance =
var _date = tableA [date]
var _TAsum = MAX( tableA[cost]) 
var _TBsum = MAX(tableB[cost])

Return If( _date &amp;gt; 1/27/2022,_TAsum-_TBsum, 0)

//assumes dates match between TableA and TableB drop this on your table visual, calcs row by row&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 01:43:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2534642#M71202</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2022-05-24T01:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: use if to find difference between columns from specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2535014#M71223</link>
      <description>&lt;P&gt;it didnt work for me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 06:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2535014#M71223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-24T06:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: use if to find difference between columns from specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2540961#M71558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Do both table A and table B have a date column? If so, please have a try.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure=var _a=calculate(sum(tableA[cost]),filter(all(tableA),tableA[date]&amp;gt;=date(2022,1,28))
var _b=calculate(sum(tableB[cost]),filter(all(tableB),tableB[date]&amp;gt;=date(2022,1,28))
return
_a-_b&lt;/LI-CODE&gt;
&lt;P&gt;If I have misunderstood your meaning, pelase provide more details with your desired output and sample data without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 08:52:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/use-if-to-find-difference-between-columns-from-specific-date/m-p/2540961#M71558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-26T08:52:43Z</dc:date>
    </item>
  </channel>
</rss>

