<?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 IF statement in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773510#M3805</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have data like this in my report,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and i need to write DAX/IF statement in power bi, which is similar to below formula.&lt;/P&gt;&lt;P&gt;if(([OVER]+[LOW]+[RIGHT]) &amp;lt;&amp;gt; 0) then ([RIGHT]/([OVER]+[LOW]+[RIGHT])) else null AS CORRECTSTOCK&lt;/P&gt;&lt;P&gt;(this formula i used in cognos)&lt;/P&gt;&lt;P&gt;Is it possible to write a formula like this in power bi? (result should be same as cognos formula)&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 18:49:40 GMT</pubDate>
    <dc:creator>yodha</dc:creator>
    <dc:date>2019-08-22T18:49:40Z</dc:date>
    <item>
      <title>IF statement in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773510#M3805</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have data like this in my report,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and i need to write DAX/IF statement in power bi, which is similar to below formula.&lt;/P&gt;&lt;P&gt;if(([OVER]+[LOW]+[RIGHT]) &amp;lt;&amp;gt; 0) then ([RIGHT]/([OVER]+[LOW]+[RIGHT])) else null AS CORRECTSTOCK&lt;/P&gt;&lt;P&gt;(this formula i used in cognos)&lt;/P&gt;&lt;P&gt;Is it possible to write a formula like this in power bi? (result should be same as cognos formula)&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 18:49:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773510#M3805</guid>
      <dc:creator>yodha</dc:creator>
      <dc:date>2019-08-22T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773586#M3810</link>
      <description>&lt;P&gt;You can try this measure&lt;/P&gt;
&lt;PRE&gt;Measure=
VAR __Over= SUM( table[over])
VAR __LOW = SUM( table[low])
VAR __Right = SUM( table[right])

VAR __TotalOLR = __Over+__LOW+__Right

VAR __IfTrue = 
    DIVIDE(
        __RIGHT,
        __TotalOLR

VAR __IfFalse= SUM ( table[CorrectStock])
RETURN

IF(
    __TotalOLR &amp;lt;&amp;gt; 0, __IfTrue, __IfFalse
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773586#M3810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-22T20:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773858#M3816</link>
      <description>&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 05:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-statement-in-Power-BI/m-p/773858#M3816</guid>
      <dc:creator>yodha</dc:creator>
      <dc:date>2019-08-23T05:34:34Z</dc:date>
    </item>
  </channel>
</rss>

