<?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: Level of detail between tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4318133#M171440</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Dec 2024 22:07:08 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-12-07T22:07:08Z</dc:date>
    <item>
      <title>Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4317374#M171419</link>
      <description>&lt;P&gt;Hi, stuck with one thing Im trying to build. Here is my semantic model. Data is limited to range 29 March 2024 to 3 April 2024.&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; What I want to achieve is field name &lt;EM&gt;New/Old user quarter&amp;nbsp;&lt;/EM&gt;(shall be named actually &lt;EM&gt;New/Old Team quarter&lt;/EM&gt; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; explanation below). Field will have two values/flags which will change under following condition: &lt;EM&gt;&lt;FONT color="#FF9900"&gt;IF(related(last_day_of_quarter)&amp;gt; min sent date quarter,"Returning","New")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Very important thing here is field &lt;EM&gt;min sent date quarter. &lt;/EM&gt;This shall be computed on&lt;EM&gt; Signature Team ID &lt;/EM&gt;level. So we are looking for minimum value of &lt;EM&gt;last_day_of_quarter&amp;nbsp;&lt;/EM&gt;for each&amp;nbsp;&lt;EM&gt;Signature Team ID &lt;/EM&gt;separately. I have prepared in DAX two calculated columns with the same formulas. However only this one build in &lt;STRONG&gt;BODI&amp;nbsp;&lt;/STRONG&gt;table works well while one in &lt;STRONG&gt;dmn_email&lt;/STRONG&gt; table gives fake results. Formulas are shown below.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;On sample data below I highlighted how mentioned logic shall work when team sent email first time at all in Q12024 and then in Q22024 email has been sent by team too.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I want to build kind of viz (sample below) with dimension of &lt;EM&gt;calendar_yyyyqn, count distinct of Signature Team IDs &lt;/EM&gt;as measure and put as a legend my aim field &lt;EM&gt;New/Old Team quarter.&lt;/EM&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Will be grateful for help.&lt;/FONT&gt;&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; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 16:29:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4317374#M171419</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2024-12-06T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4318133#M171440</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 22:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4318133#M171440</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-07T22:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4319369#M171477</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's hard to tell what exactly the issue is, without knowing how your tables are connected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But at a glance I can tell you that sooner or later you will run into problems using that many-to-many relationship between the BODI and dmn_email table. It looks like the dmn_email table is your fact table, so I guess the BODI table is a dimension table just like the others? Is there a unique key column in the BODI table, which you can connect to the dmn_email table? Use it instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;m:m relationships aren't best practice for a proper Power BI data model and often result in unexpected calculation results. If you're lucky this already helps to eliminate your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 09:00:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4319369#M171477</guid>
      <dc:creator>timalbers</dc:creator>
      <dc:date>2024-12-09T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4320984#M171550</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="824799" data-lia-user-login="Szokens" class="lia-mention lia-mention-user"&gt;Szokens&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to&amp;nbsp;lbendlin&amp;nbsp;and&amp;nbsp;timalbers for their quick replies. I have some other thoughts to add:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The `ALLEXCEPT` function removes all filters from the BODI table except for the `Signature Team ID`. When you use this in the BODI table, it works as expected because the context is clear. However, when you use the same formula in the `dmn_email` table, the context might be different due to the many-to-many relationship with the BODI table.&lt;/P&gt;
&lt;P&gt;In a many-to-many relationship, filters can propagate in unexpected ways.The context in which the formula is evaluated can differ between tables. In the `dmn_email` table, the context might not include the necessary filters from the `BODI` table, leading to incorrect results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution &lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 06:21:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4320984#M171550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-10T06:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4321929#M171578</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458966" data-lia-user-login="timalbers" class="lia-mention lia-mention-user"&gt;timalbers&lt;/a&gt;&amp;nbsp;, do you suggest to merge dmn_email with BODI tables instead of creating relationship between them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, does exist any formula to bring necessary BODI table filters if they are present? Which potentially might correct my calculation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 14:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4321929#M171578</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2024-12-10T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4321967#M171581</link>
      <description>&lt;P&gt;As I've said, it's hard to tell without the full picture of your data model schema and all the columns.&lt;BR /&gt;It depends on what each table represents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of your screenshot I assume dmn_email consists of sent emails, so this would be the fact table. Then you have a date table, a receipients table and a employee table, which are all dimension tables that serve the fact table with further information about the regarding dimension. But I'm afraid that I don't know exactly what the purpose of the BODi table is... If it is an additional dimension table (maybe branch?) then you'll have to have a unique key for each branch in this table that you can connect to the fact table.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 14:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4321967#M171581</guid>
      <dc:creator>timalbers</dc:creator>
      <dc:date>2024-12-10T14:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4341838#M172418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458966" data-lia-user-login="timalbers" class="lia-mention lia-mention-user"&gt;timalbers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, I have use your idea to merge dmn_email table and BODI table into one, leaving rest of semantic model as it is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately this operation and rest of my calculated columns / measures in these tables didn't negatively impact of data import, so I was able to use DAX formula with ALLEXCEPT() function to achieve my goal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;"m:m relationships aren't best practice for a proper Power BI data model and often result in unexpected calculation results. If you're lucky this already helps to eliminate your issue."&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;This is interesting, can you please elaborate more? I have heard that I shall stick mostly with relationships and semantic model when building source, and keepeing away of merging tables always when possible. I have also faced some problems recently when I have merged to many tables and importing of data just took dozen hours.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 08:02:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4341838#M172418</guid>
      <dc:creator>Szokens</dc:creator>
      <dc:date>2024-12-24T08:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Level of detail between tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4342058#M172422</link>
      <description>&lt;P&gt;Power BI prefers a star schema data model.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 11:14:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Level-of-detail-between-tables/m-p/4342058#M172422</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-24T11:14:56Z</dc:date>
    </item>
  </channel>
</rss>

