<?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 greater than as a True Result in IF statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2184678#M50915</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make it more clear, you need create a Calculated column and then use the new column to create Slicer.&amp;nbsp; Calculated column used to compare ACTUAL_DURATION with PLANNED_DURATION:&lt;/P&gt;
&lt;P&gt;GreaterOrNot = If ('DURATION'[ACTUAL_DURATION]&amp;gt;'DURATION'[PLANNED_DURATION],"Yes","No")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the pbix file as reference.&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 _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it, please feel free to let us know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 07:53:18 GMT</pubDate>
    <dc:creator>v-cazheng-msft</dc:creator>
    <dc:date>2021-11-11T07:53:18Z</dc:date>
    <item>
      <title>Use greater than as a True Result in IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2172066#M50443</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to compare two columns using clustered column chart, and want to make a filter that if I select "yes" then the visual will be filtered into a visual that shows column a more than column b.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use greater than as a result in the if statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;Activity has planned duration and actual duration.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And If I select yes in slicer then&amp;nbsp;the visual will display the actual duration value that exceeds the planned duration, and if I select no it will display the actual duration value which is less than equal to the planned duration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 07:23:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2172066#M50443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-04T07:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use greater than as a True Result in IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2176633#M50631</link>
      <description>&lt;P&gt;The big question here is if you can do it as a column or if you need a measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can do it as a column then it would be like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greater = If (Actual_Duration&amp;gt;Planned_Duration,"Yes","No")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and you would then use that column to feed your slicer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a measure version you would need to feed the slicer from a disconnected table.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 19:45:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2176633#M50631</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-11-07T19:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use greater than as a True Result in IF statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2184678#M50915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make it more clear, you need create a Calculated column and then use the new column to create Slicer.&amp;nbsp; Calculated column used to compare ACTUAL_DURATION with PLANNED_DURATION:&lt;/P&gt;
&lt;P&gt;GreaterOrNot = If ('DURATION'[ACTUAL_DURATION]&amp;gt;'DURATION'[PLANNED_DURATION],"Yes","No")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached the pbix file as reference.&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 _ Caiyun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. If you still have problems on it, please feel free to let us know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 07:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Use-greater-than-as-a-True-Result-in-IF-statement/m-p/2184678#M50915</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2021-11-11T07:53:18Z</dc:date>
    </item>
  </channel>
</rss>

