<?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: Relationships and Dax Measures Issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2969542#M99186</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response!&lt;/P&gt;
&lt;P&gt;For your model relationships, show that you meet your expectations when you don't put 'Tenant Name', but you don't put it later. This is because your Tenants table is a multi-terminal table, and it will match multiple corresponding tenant names, which will automatically expand your table. First you need to determine what the logic of the Tenant Name you need to show is, because one rename corresponds to multiple unit_name and corresponds to multiple tenamt names, then placed in the visual will automatically expand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, you can provide more detailed test data and the data results you want in the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 03:56:19 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2022-12-15T03:56:19Z</dc:date>
    <item>
      <title>Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2939653#M97045</link>
      <description>&lt;P&gt;Hey everyone, i'm still relatively new to DAX but i'm getting an issue when i'm trying to roll up the report to give me specifc measures of &lt;STRONG&gt;$ / SF, Tenant Rent and Square Feet&lt;/STRONG&gt;. It seems like its an issue with the relationships.&amp;nbsp;Below is an example of the real data i'm working with.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what I get when I run the report.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is an example of the desired result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Show SF for all units - regardless if it has a tenant associated with it.&lt;/LI&gt;&lt;LI&gt;Show all Tenants $/SF and Rent&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any help on this would be great, I feel like i'm missing something obvious. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2939653#M97045</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-11-30T16:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2940557#M97097</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the "&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;$ / SF, Tenant Rent and Square Feet&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;For your model relationships, one-to-many is fine.&lt;BR /&gt;But for your business logic, I am not very clear, for the data you provided I did not find the corresponding calculation logic.&lt;/P&gt;
&lt;P&gt;How to calculate Figure 2 from Figure 1?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;For your needs, can you provide us with sample data for each table and the final result you want and your calculation logic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 02:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2940557#M97097</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-12-01T02:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2942073#M97218</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;thanks for responding to my post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a sample of the data, measures and report setup. To be clear Figure #2 from above is something I put together manually to show what I would ideally like to see from this report, Figure #1 is what I current see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Unit Data&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Tenant Rent&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Tenants&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Real Estate&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Measures&lt;/U&gt;&lt;/P&gt;&lt;P&gt;$ / SF =&amp;nbsp;&lt;SPAN class=""&gt;[Sum of rent]/[Square Feet]&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;Square Feet =&amp;nbsp;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;SUMX&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Unit Data',[SF])&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Tenant: Rent&lt;!--  StartFragment   --&gt; =&lt;SPAN class=""&gt;SUMX&lt;/SPAN&gt;('Tenant Rent',[rent])&lt;!--  EndFragment   --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;SPAN class=""&gt;Current Report Setup&lt;/SPAN&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the current output i'm getting&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help much appreciated! Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2942073#M97218</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-12-01T14:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2943491#M97299</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your quick response and your detailed data.&lt;/P&gt;
&lt;P&gt;I create the data is the same as yours. In Power BI Desktop, i make this relationship between tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then we need to create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$/SF = DIVIDE(SUM( 'Unit Data'[SF]), SUM('Tenant Rent'[rent]) )&lt;/LI-CODE&gt;
&lt;P&gt;Then we just need to put the field we need on the visual and we can meet your need:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 04:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2943491#M97299</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-12-02T04:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2959699#M98497</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp; thank you for your help on this. I'm not exactly sure why i'm still having an issue. Below is the relationships I have setup, everything seems to match yours.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything flows through correctly when I setup the report for re_name anbd unit_name (below).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I add in tenant_name, the reports doesnt give me the correct output.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It seems like its still an issue with the relationships - any other thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 18:46:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2959699#M98497</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-12-09T18:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2961133#M98631</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response !&lt;/P&gt;
&lt;P&gt;According to the relationship in your screenshot, it seems the 'Unit Data' and the 'Tenant Rent' are one-to many relationship and the related field is the [unit_id]?&lt;/P&gt;
&lt;P&gt;Another, the 'Tenant Rent' and the 'Tenants' table are also the one-to many relationship.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;But for the sample data you provide , it is all the "one-to-one" relationship in my test side:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So i am not fully understand the logic in your tables, can you re provide the complete data of the next two tables in the form of a table, so that they can form a one to many relationship?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 01:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2961133#M98631</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-12-12T01:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2968606#M99141</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp; thanks again for helping me work through this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, 'Unit Data' and 'Tenant Rent' are both one-to-many relationships on the 'unit_id' column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the limited sample data I gave you, the 'Tenant' and 'Tenant Rent' tables have only a one-to-one relationship, but in the real dataset they will have multiple rows with an additional date dimension. For this example it doesnt seem like thats the constraining issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look at create a query for re_name / unit_name / tenant_name / Tenant: Rent (measure), it gives me all of the tenants with their rent. But when I add Square Feet (measure) to it, it gives me a lot of repetiative data. When I remove tenant_name, then it shows the correct Tenant Rent (measure) and Square Feet (measure). My goal is to have&amp;nbsp;re_name / unit_name / tenant_name / Tenant: Rent / Square Feet all in the same report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Below is what i'm currently getting when I attempt to add in tenant_name.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems like i'm missing something obvious with the relationships between the Tenants, Tenant Rent, and Unit Data Tables.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you for your help on this!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:37:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2968606#M99141</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2022-12-14T16:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships and Dax Measures Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2969542#M99186</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick response!&lt;/P&gt;
&lt;P&gt;For your model relationships, show that you meet your expectations when you don't put 'Tenant Name', but you don't put it later. This is because your Tenants table is a multi-terminal table, and it will match multiple corresponding tenant names, which will automatically expand your table. First you need to determine what the logic of the Tenant Name you need to show is, because one rename corresponds to multiple unit_name and corresponds to multiple tenamt names, then placed in the visual will automatically expand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, you can provide more detailed test data and the data results you want in the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 03:56:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Relationships-and-Dax-Measures-Issue/m-p/2969542#M99186</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-12-15T03:56:19Z</dc:date>
    </item>
  </channel>
</rss>

