<?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: Filter two different values based on a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154575#M49722</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290711" data-lia-user-login="CastroRibeiro" class="lia-mention lia-mention-user"&gt;CastroRibeiro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share a sample data and let us know how do you like to show the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, if you want to count with different values, try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count_CLIENT = 
Vat _Time = if(fcriticalDemands[CLIENT]="UN-BC",9,8)
var _Count= 
    CALCULATE(
       COUNTROWS(fcriticalDemands),
            FILTER(
                fcriticalDemands,
                fcriticalDemands[deliveryTime]&amp;lt;=_Time))

 return 
 _Count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 01:03:01 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-10-26T01:03:01Z</dc:date>
    <item>
      <title>Filter two different values based on a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154537#M49719</link>
      <description>&lt;P&gt;I have a customer who has a delivery time that is different from the rest of the other customers, for this customer the time is &amp;lt;= 9 while for the rest the time is &amp;lt;= 8&lt;BR /&gt;&lt;BR /&gt;How do I only count customer times for &lt;SPAN&gt;UNBCES&lt;/SPAN&gt; when the delivery time is &amp;lt;=9 at the same time I filter the data of other customers which is &amp;lt;=8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My attempt was first to count the values of the UNBCES client and then take these values and filter again the other clients that have a shorter time, which is &amp;lt;=8, but it didn't work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UNBCES_CLIENT count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UNBCES_CLIENT = 
var UNBCES = 
    CALCULATE(
       COUNTROWS(fcriticalDemands),
            FILTER(
                fcriticalDemands,
                fcriticalDemands[CLIENT]="UN-BC" &amp;amp;&amp;amp;
                fcriticalDemands[deliveryTime]&amp;lt;=9))

 return UNBCES    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UNBCES_CLIENT and trying to count the rest of the clients&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CLIENTS = 
var CLIENT= 
    CALCULATE(
       Leadtime[UNBCES_CLIENT],
            FILTER(
                fcriticalDemands,
                fcriticalDemands[deliveryTime]&amp;lt;=8))

return CLIENT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 00:02:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154537#M49719</guid>
      <dc:creator>CastroRibeiro</dc:creator>
      <dc:date>2021-10-26T00:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filter two different values based on a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154575#M49722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="290711" data-lia-user-login="CastroRibeiro" class="lia-mention lia-mention-user"&gt;CastroRibeiro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you share a sample data and let us know how do you like to show the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, if you want to count with different values, try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count_CLIENT = 
Vat _Time = if(fcriticalDemands[CLIENT]="UN-BC",9,8)
var _Count= 
    CALCULATE(
       COUNTROWS(fcriticalDemands),
            FILTER(
                fcriticalDemands,
                fcriticalDemands[deliveryTime]&amp;lt;=_Time))

 return 
 _Count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154575#M49722</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-26T01:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter two different values based on a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154637#M49725</link>
      <description>&lt;P&gt;I want to show something like this, but I have to calculate it differently for the UN-BC client and for the others it's the same thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other colors refer to other time calculations, the green value is what we think of the ideal time, which for the un-bc client is &amp;lt;=9&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;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 02:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-two-different-values-based-on-a-column/m-p/2154637#M49725</guid>
      <dc:creator>CastroRibeiro</dc:creator>
      <dc:date>2021-10-26T02:03:31Z</dc:date>
    </item>
  </channel>
</rss>

