<?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: conditional all()?? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989507#M154675</link>
    <description>&lt;P&gt;&lt;SPAN&gt;if(checkbox is true, Calculate( something, all(dates)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You get the "do nothing"&amp;nbsp; for free if you omit the "else" parameter.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 19:53:45 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-06-12T19:53:45Z</dc:date>
    <item>
      <title>conditional all()??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989358#M154654</link>
      <description>&lt;P&gt;Hi. I have a calculate function. I need to decide on the fly whether it uses all() (based on user input in a checkbox) as one of its arguments. Is this at all possible? Calculate( something, if(checkbox is true, all(dates), do nothing) )&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 17:55:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989358#M154654</guid>
      <dc:creator>yasbos</dc:creator>
      <dc:date>2024-06-12T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: conditional all()??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989507#M154675</link>
      <description>&lt;P&gt;&lt;SPAN&gt;if(checkbox is true, Calculate( something, all(dates)))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You get the "do nothing"&amp;nbsp; for free if you omit the "else" parameter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 19:53:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989507#M154675</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-12T19:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: conditional all()??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989846#M154712</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399881" data-lia-user-login="yasbos" class="lia-mention lia-mention-user"&gt;yasbos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can try formula like below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ConditionalTotalSales = 
IF(
    [SelectedOption] = "Include All",
    CALCULATE(
        [TotalSales],
        ALL('Calendar')
    ),
    CALCULATE(
        [TotalSales]
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;SelectedOption = SELECTEDVALUE(Checkbox[Option], "Exclude All")
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;TotalSales = SUM(Sales[Sales])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 01:41:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3989846#M154712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T01:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: conditional all()??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3991806#M154908</link>
      <description>&lt;P&gt;Thanks so much&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;. I forgot to mention that I did know this solution, but I was hoping for a more localized decision because the calculate function that I have is much larger than just one line. I was hoping to modularize the code. Thanks so much for your help, nonetheless.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 20:17:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3991806#M154908</guid>
      <dc:creator>yasbos</dc:creator>
      <dc:date>2024-06-13T20:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: conditional all()??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3991810#M154909</link>
      <description>&lt;P&gt;Thanks so much,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;.&amp;nbsp;I forgot to mention that I did know this solution, but I was hoping for a more localized decision because the calculate function that I have is much larger than just one line. I was hoping to modularize the code. Thanks so much for your help, nonetheless.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 20:18:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3991810#M154909</guid>
      <dc:creator>yasbos</dc:creator>
      <dc:date>2024-06-13T20:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: conditional all()??</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3991837#M154910</link>
      <description>&lt;P&gt;Also, thank you again so much for taking the time and putting the efforts into this,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;. That's awesome!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 20:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/conditional-all/m-p/3991837#M154910</guid>
      <dc:creator>yasbos</dc:creator>
      <dc:date>2024-06-13T20:41:51Z</dc:date>
    </item>
  </channel>
</rss>

