<?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: Multiple IF and return calculated results if false in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908095#M41222</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp; Millions thanks!&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Achievement_viz = CALCULATE(IF((IF([Culmulative]="0",SUM(Data[A2020])/sum(Data[M2020]),((SUM(Data[A2020])-sum(Data[Baseline]))/(SUM(Data[M2020])-SUM(Data[Baseline])))))&amp;gt;1.5,1.5,""))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 18 Jun 2021 06:19:32 GMT</pubDate>
    <dc:creator>Huiyan</dc:creator>
    <dc:date>2021-06-18T06:19:32Z</dc:date>
    <item>
      <title>Multiple IF and return calculated results if false</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908067#M41220</link>
      <description>&lt;P&gt;Hey Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you kindly guide me on the formula below? If formula result is bigger than 1.5, i want to cap it at 1.5, otherwise I need to keep the calculated result. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huiyan&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:12:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908067#M41220</guid>
      <dc:creator>Huiyan</dc:creator>
      <dc:date>2021-06-18T06:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF and return calculated results if false</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908090#M41221</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307925" data-lia-user-login="Huiyan" class="lia-mention lia-mention-user"&gt;Huiyan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you paste the formula in this replay box as text to check?.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908090#M41221</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-18T06:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF and return calculated results if false</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908095#M41222</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp; Millions thanks!&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Achievement_viz = CALCULATE(IF((IF([Culmulative]="0",SUM(Data[A2020])/sum(Data[M2020]),((SUM(Data[A2020])-sum(Data[Baseline]))/(SUM(Data[M2020])-SUM(Data[Baseline])))))&amp;gt;1.5,1.5,""))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:19:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908095#M41222</guid>
      <dc:creator>Huiyan</dc:creator>
      <dc:date>2021-06-18T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF and return calculated results if false</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908107#M41224</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307925" data-lia-user-login="Huiyan" class="lia-mention lia-mention-user"&gt;Huiyan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you explain where you are getting the wrong results, you can share the screenshot that includes all the fields. Are you creating a Measure or a Calculated column?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908107#M41224</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-18T06:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF and return calculated results if false</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908119#M41225</link>
      <description>&lt;P&gt;I'm creating a measure. You can see in the table below, there are only '150%' because I did the cap. For the empty cells, I want them to be filled with results of the underlined formula, e.g. 140%, 130%,80% etc. I need to revise the "" part. But I don't know how.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908119#M41225</guid>
      <dc:creator>Huiyan</dc:creator>
      <dc:date>2021-06-18T06:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF and return calculated results if false</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908193#M41226</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307925" data-lia-user-login="Huiyan" class="lia-mention lia-mention-user"&gt;Huiyan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try this formula?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Achievement_viz =
VAR one =
    CALCULATE (
        IF (
            [Culmulative] = 0,
            SUM ( Data[A2020] ) / SUM ( Data[M2020] ),
            (
                ( SUM ( Data[A2020] ) - SUM ( Data[Baseline] ) )
                    / ( SUM ( Data[M2020] ) - SUM ( Data[Baseline] ) )
            )
        )
    )
RETURN
    IF ( one &amp;gt;= 1.5, 1.5, one )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:49:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-and-return-calculated-results-if-false/m-p/1908193#M41226</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-06-18T06:49:28Z</dc:date>
    </item>
  </channel>
</rss>

