<?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 Multiple IF functions with filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2350656#M59643</link>
    <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following dax formula, the purpose of which is to create different customer profiles. So dependent on the "order quantity" of each distinct "% key customer" return either: Low,medium,high or top. It works if I put a matrix table with key customer next to customer categories and order count. However when I just put the "Customer category" in a matrix it will return just the value "top". I would like to have this new measure show all of the categories in a matrix (Low,medium,high or top) so I can compare sales value. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 21 Feb 2022 10:13:26 GMT</pubDate>
    <dc:creator>stino123</dc:creator>
    <dc:date>2022-02-21T10:13:26Z</dc:date>
    <item>
      <title>Multiple IF functions with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2350656#M59643</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following dax formula, the purpose of which is to create different customer profiles. So dependent on the "order quantity" of each distinct "% key customer" return either: Low,medium,high or top. It works if I put a matrix table with key customer next to customer categories and order count. However when I just put the "Customer category" in a matrix it will return just the value "top". I would like to have this new measure show all of the categories in a matrix (Low,medium,high or top) so I can compare sales value. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Feb 2022 10:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2350656#M59643</guid>
      <dc:creator>stino123</dc:creator>
      <dc:date>2022-02-21T10:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF functions with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2350832#M59652</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try uisng SWITCH + TRUE to achieve this. The basic structure is as follows: SWITCH(TRUE(),condition1, result1,&lt;BR /&gt;condition2, result2 ...&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;To get this to show in matrix I recommend creating a new table e.g. Table = {("Low"),("Medium"),("High"),("Top")}&lt;BR /&gt;&lt;BR /&gt;Then use this table in comination with your category measure to get the desired end result.&lt;BR /&gt;&lt;BR /&gt;E.g. Filter = If(Table[Value]=[Measure],1,0)&lt;BR /&gt;&lt;BR /&gt;Place this as a visual filter to enable slicing based on category. (Filters on this visual: Filter is 1)&lt;BR /&gt;&lt;BR /&gt;Then you can create e.g. count measures to get values based pn category:&lt;BR /&gt;&lt;BR /&gt;Bool High = IF([Measure]="High",1,0)&lt;BR /&gt;&lt;BR /&gt;Count high = SUMX(orders,[Bool high])&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 10:19:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2350832#M59652</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-21T10:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF functions with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2358095#M60137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="340844" data-lia-user-login="stino123" class="lia-mention lia-mention-user"&gt;stino123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I'm not clear what's the relationship of customer category and Key customer, could you please explain more or give a simple example of your data?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:33:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions-with-filter/m-p/2358095#M60137</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-02-24T08:33:49Z</dc:date>
    </item>
  </channel>
</rss>

