<?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: If condition on the next column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1259555#M20917</link>
    <description>&lt;P&gt;Hello and thanks for your response, to be clear the column2 (a substraction by month)is a measure that I had already calculated it previously and i wanna just display the value when the column 3 (the rest of the substraction) turn to zero but the problem that I should keep the value of the column2 on the last month just to show that we have subtract this value (column2) so that is why the column 3 turns on zero so I thought that the formula that &lt;SPAN class="hiddenGrammarError"&gt;i&lt;/SPAN&gt; did gonna to do the work but I'm wrong&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 15:00:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-29T15:00:21Z</dc:date>
    <item>
      <title>If condition on the next column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1255124#M20725</link>
      <description>&lt;P&gt;Hello everyone , i need help with a calculate if condition ,so my dax formula is :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF((table1[column3]+1)=0, 0, table1[column2] but it does'nt work because it display the the value on all projetctions , i want that stop displaying the column 2 on the second projection of column3 = 0&amp;nbsp; , like when&amp;nbsp; " (column3 = 0)+1 only" stop there.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;can you give some help please ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jul 2020 09:20:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1255124#M20725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: If condition on the next column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1255309#M20729</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , power bi do not concept for previous column next column for formula. So let us know what you need , based on that we need to create a formula&lt;/P&gt;
&lt;P&gt;Like MOM&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last MTD (complete) Sales =  CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-1,MONTH))))


diff = [MTD Sales]-[last MTD Sales]
diff % = divide([MTD Sales]-[last MTD Sales],[last MTD Sales])
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;check : &lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer : &lt;BR /&gt;&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi" target="_blank"&gt;https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See if my webinar on Time Intelligence can help: &lt;A href="https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184" target="_blank"&gt;https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate your Kudos.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 10:07:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1255309#M20729</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-28T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: If condition on the next column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1259555#M20917</link>
      <description>&lt;P&gt;Hello and thanks for your response, to be clear the column2 (a substraction by month)is a measure that I had already calculated it previously and i wanna just display the value when the column 3 (the rest of the substraction) turn to zero but the problem that I should keep the value of the column2 on the last month just to show that we have subtract this value (column2) so that is why the column 3 turns on zero so I thought that the formula that &lt;SPAN class="hiddenGrammarError"&gt;i&lt;/SPAN&gt; did gonna to do the work but I'm wrong&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 15:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1259555#M20917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: If condition on the next column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1271714#M21439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is not at all clear what you are trying to do. Could you provide a sample report?(In order to share it upload it to e.g. dropbox/onedrive/other and share the link)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Sturla&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 13:31:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-condition-on-the-next-column/m-p/1271714#M21439</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2020-08-04T13:31:49Z</dc:date>
    </item>
  </channel>
</rss>

