<?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: How to create a measure for this? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3218233#M117541</link>
    <description>&lt;P&gt;Worked like a charm! Thanks very much&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 15:20:31 GMT</pubDate>
    <dc:creator>Karthikreddy523</dc:creator>
    <dc:date>2023-05-03T15:20:31Z</dc:date>
    <item>
      <title>How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216240#M117427</link>
      <description>&lt;P&gt;The table is in a direct query mode and the logic i need is&lt;/P&gt;&lt;P&gt;If&amp;nbsp;Both Supplier and User location are in the same continent for the entire business = 1,&lt;/P&gt;&lt;P&gt;if&amp;nbsp;Supplier and Users are in different continents ( 1 user continent) =2&lt;/P&gt;&lt;P&gt;if&amp;nbsp;Supplier and Users are in different continents ( &amp;gt;1 user continent) =3&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:40:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216240#M117427</guid>
      <dc:creator>Karthikreddy523</dc:creator>
      <dc:date>2023-05-02T17:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216257#M117428</link>
      <description>&lt;P&gt;Hello you could use switch bit i didnt understand well the 2 and 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SWITCH(&lt;/P&gt;&lt;P&gt;TRUE(),&lt;/P&gt;&lt;P&gt;'Table'[supplier location] = 'Table'[user location],1,&lt;/P&gt;&lt;P&gt;AND('Table'[supplier location] &amp;lt;&amp;gt; 'Table'[user location],'Table'[users] =1),2,&lt;/P&gt;&lt;P&gt;AND('Table'[supplier location] &amp;lt;&amp;gt; 'Table'[user location],'Table'[users] &amp;gt; 1),3&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:49:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216257#M117428</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-02T17:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216263#M117430</link>
      <description>&lt;P&gt;If&amp;nbsp;Supplier and Users are in different continents and the user is in just 1 continent then it should be 2&lt;/P&gt;&lt;P&gt;if&amp;nbsp;Supplier and Users are in different continents and the user is in more than 1 continent, then it should be 3&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216263#M117430</guid>
      <dc:creator>Karthikreddy523</dc:creator>
      <dc:date>2023-05-02T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216290#M117437</link>
      <description>&lt;P&gt;Can you provide with a sample of your data table&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 18:17:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216290#M117437</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-02T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216295#M117439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543419" data-lia-user-login="Karthikreddy523" class="lia-mention lia-mention-user"&gt;Karthikreddy523&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is everything is in one table?&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 18:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216295#M117439</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-02T18:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216303#M117441</link>
      <description>&lt;P&gt;These are in 2 different tables&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 18:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216303#M117441</guid>
      <dc:creator>Karthikreddy523</dc:creator>
      <dc:date>2023-05-02T18:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216366#M117443</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="543419" data-lia-user-login="Karthikreddy523" class="lia-mention lia-mention-user"&gt;Karthikreddy523&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;IF (&lt;BR /&gt;HASONEVALUE ( 'Table'[user ID] ),&lt;BR /&gt;MAXX (&lt;BR /&gt;'Table',&lt;BR /&gt;VAR UserContinent = 'Table'[user Continent]&lt;BR /&gt;VAR SupplierContinent = 'Table'[supplier Continent]&lt;BR /&gt;VAR NumOfUserContinents =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DISTINCTCOUNT ( 'Table'[user Continent] ),&lt;BR /&gt;ALLEXCEPT ( 'Table', 'Table'[user ID] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;SWITCH (&lt;BR /&gt;TRUE (),&lt;BR /&gt;UserContinent = SupplierContinent, 1,&lt;BR /&gt;NumOfUserContinents = 1, 2,&lt;BR /&gt;3&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 19:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3216366#M117443</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-02T19:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure for this?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3218233#M117541</link>
      <description>&lt;P&gt;Worked like a charm! Thanks very much&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:20:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-for-this/m-p/3218233#M117541</guid>
      <dc:creator>Karthikreddy523</dc:creator>
      <dc:date>2023-05-03T15:20:31Z</dc:date>
    </item>
  </channel>
</rss>

