<?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: Creating Measure for a table without using USERELATIONSHIP() in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2842025#M39255</link>
    <description>&lt;P&gt;I've tested this and I think all you need is a simple COUNT measure...&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Count Warehouse = 
COUNT('List Table'[Warehouse Country])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-10-14.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/804130i406B2429DEE2B8C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-10-14.png" alt="2022-10-14.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count.gif" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/804131i77A8FECD5D020B68/image-size/large?v=v2&amp;amp;px=999" role="button" title="count.gif" alt="count.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 09:22:09 GMT</pubDate>
    <dc:creator>PaulDBrown</dc:creator>
    <dc:date>2022-10-14T09:22:09Z</dc:date>
    <item>
      <title>Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2837537#M39223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables one is geography table(dimension table) and another one is a fact table.In the fact table the seller gets order from all over the world and so there are 2 columns where ordered country show from which country the order is placed and warehouse country shows from which country the order will be shipped.&lt;/P&gt;&lt;P&gt;I have to count how many orders were placed from a country for business requirements and also which country is handling the most number of orders.I have created a active and an inactive relationship between the 2 tables.&lt;/P&gt;&lt;P&gt;1. geography(country) ---&amp;gt; fact(ordered country)&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.geography(country) ---&amp;gt; fact(warehouse country)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsp9911_0-1665594285983.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/802828iA9516223B0A8B761/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsp9911_0-1665594285983.png" alt="dsp9911_0-1665594285983.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have created a measure in fact table to count which country is handling most number of orders.&lt;/P&gt;&lt;P&gt;count of warehouse country = CALCULATE(COUNT(List[Warehouse Country]),USERELATIONSHIP(geography[country],LIST[warehouse country]))&lt;/P&gt;&lt;P&gt;So this gives me data for each country like which country handles how much orders and this works fine.&lt;/P&gt;&lt;P&gt;But when i apply RLS on Country&amp;nbsp; from&amp;nbsp; geography table it gives a error where I cant use the USERELATIONSHIP() with RLS.&lt;/P&gt;&lt;P&gt;I need both the relationship in my model for calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there any workaround for this?(also i cant create a duplicate geography table to have seperate relationship on different data due to size restrictions)&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/55880"&gt;@Sus&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/24542"&gt;@PaulDBrown&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 17:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2837537#M39223</guid>
      <dc:creator>dsp9911</dc:creator>
      <dc:date>2022-10-12T17:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2837611#M39224</link>
      <description>&lt;P&gt;Not sure if RLS allows the use of TREATAS, but you can try:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Warehouse count =
CALCULATE (
    [Count warehouse Country],
    ALL ( 'Geagraphy Table' ),
    TREATAS (
        VALUES ( 'Geagraphy Table'[Country] ),
        'List Table'[Warehouse Country]
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Oct 2022 18:23:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2837611#M39224</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-10-12T18:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2838363#M39229</link>
      <description>&lt;P&gt;I used TREATAS but that leads to loss of some data i.e if value for a seller should be 500 after using TREATAS it gives only 430&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 04:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2838363#M39229</guid>
      <dc:creator>dsp9911</dc:creator>
      <dc:date>2022-10-13T04:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2838542#M39230</link>
      <description>&lt;P&gt;Any chance you can share some sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 06:28:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2838542#M39230</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-10-13T06:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2839097#M39238</link>
      <description>&lt;P&gt;Sorry but can't share the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2839097#M39238</guid>
      <dc:creator>dsp9911</dc:creator>
      <dc:date>2022-10-13T09:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2842025#M39255</link>
      <description>&lt;P&gt;I've tested this and I think all you need is a simple COUNT measure...&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Count Warehouse = 
COUNT('List Table'[Warehouse Country])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-10-14.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/804130i406B2429DEE2B8C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-10-14.png" alt="2022-10-14.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="count.gif" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/804131i77A8FECD5D020B68/image-size/large?v=v2&amp;amp;px=999" role="button" title="count.gif" alt="count.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2842025#M39255</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-10-14T09:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2842840#M39265</link>
      <description>&lt;P&gt;It doesnt work when RLS is applied on Gcountry column the visualisation using measure count warehouse breaks and doesn't show data&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 14:49:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2842840#M39265</guid>
      <dc:creator>dsp9911</dc:creator>
      <dc:date>2022-10-14T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Measure for a table without using USERELATIONSHIP()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2845147#M39278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this help you?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/USERELATIONSHIP-and-RLS/m-p/787463" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/USERELATIONSHIP-and-RLS/m-p/787463&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 21:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Measure-for-a-table-without-using-USERELATIONSHIP/m-p/2845147#M39278</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2022-10-16T21:54:20Z</dc:date>
    </item>
  </channel>
</rss>

