<?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: SOS HELP ! related or lookupvalue from another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SOS-HELP-related-or-lookupvalue-from-another-table/m-p/3350521#M125806</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="592987" data-lia-user-login="user_1111" class="lia-mention lia-mention-user"&gt;user_1111&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to transform your tables first as below.&lt;/P&gt;
&lt;P&gt;New Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Range =
VAR _PART1 =
    CALCULATE (
        MAX ( 'Table'[Norm] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Segment] = MAX ( 'Table (2)'[Segment] )
                &amp;amp;&amp;amp; 'Table'[Tenure] = MAX ( 'Table (2)'[Tenure] )
                &amp;amp;&amp;amp; 'Table'[Norm] &amp;lt;= MAX ( 'Table (2)'[Norm] )
        )
    )
VAR _VALUE1 =
    CALCULATE (
        SUM ( 'Table'[Percentage] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Segment] = MAX ( 'Table (2)'[Segment] )
                &amp;amp;&amp;amp; 'Table'[Tenure] = MAX ( 'Table (2)'[Tenure] )
                &amp;amp;&amp;amp; 'Table'[Norm] = _PART1
        )
    )
VAR _PART2 =
    CALCULATE (
        MAX ( 'Table'[Percentage] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Segment] = MAX ( 'Table (2)'[Segment] )
                &amp;amp;&amp;amp; 'Table'[Tenure] = MAX ( 'Table (2)'[Tenure] )
                &amp;amp;&amp;amp; 'Table'[Norm] &amp;gt; MAX ( 'Table (2)'[Norm] )
        )
    )
RETURN
    IF ( _PART1 = BLANK (), _PART2, _VALUE1 )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can download my attatchment to learn more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 08:41:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-26T08:41:59Z</dc:date>
    <item>
      <title>SOS HELP ! related or lookupvalue from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SOS-HELP-related-or-lookupvalue-from-another-table/m-p/3345056#M125573</link>
      <description>&lt;P&gt;Hello everyone! I need some help, colleagues.&lt;BR /&gt;&lt;BR /&gt;I have a fact table showing the quantity by segment and duration of employee tenure, and there is a reference table with norms based on the segment and duration of employee tenure.&lt;/P&gt;&lt;P&gt;How can I use DAX&amp;nbsp; to fetch the value and correctly distribute the quantity range that meets the norms, and calculate the Percentage of Norm Completion based on the segment and duration of employee tenure? There is no direct relationship - I created an index column for the segment.&amp;nbsp;&lt;SPAN&gt;The norm values are different for each segment.&lt;/SPAN&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;I am attaching screenshots of the tables for better understanding.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;need result an screenshot :&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;</description>
      <pubDate>Sun, 23 Jul 2023 05:43:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SOS-HELP-related-or-lookupvalue-from-another-table/m-p/3345056#M125573</guid>
      <dc:creator>user_1111</dc:creator>
      <dc:date>2023-07-23T05:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: SOS HELP ! related or lookupvalue from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SOS-HELP-related-or-lookupvalue-from-another-table/m-p/3350521#M125806</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="592987" data-lia-user-login="user_1111" class="lia-mention lia-mention-user"&gt;user_1111&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to transform your tables first as below.&lt;/P&gt;
&lt;P&gt;New Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Range =
VAR _PART1 =
    CALCULATE (
        MAX ( 'Table'[Norm] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Segment] = MAX ( 'Table (2)'[Segment] )
                &amp;amp;&amp;amp; 'Table'[Tenure] = MAX ( 'Table (2)'[Tenure] )
                &amp;amp;&amp;amp; 'Table'[Norm] &amp;lt;= MAX ( 'Table (2)'[Norm] )
        )
    )
VAR _VALUE1 =
    CALCULATE (
        SUM ( 'Table'[Percentage] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Segment] = MAX ( 'Table (2)'[Segment] )
                &amp;amp;&amp;amp; 'Table'[Tenure] = MAX ( 'Table (2)'[Tenure] )
                &amp;amp;&amp;amp; 'Table'[Norm] = _PART1
        )
    )
VAR _PART2 =
    CALCULATE (
        MAX ( 'Table'[Percentage] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Segment] = MAX ( 'Table (2)'[Segment] )
                &amp;amp;&amp;amp; 'Table'[Tenure] = MAX ( 'Table (2)'[Tenure] )
                &amp;amp;&amp;amp; 'Table'[Norm] &amp;gt; MAX ( 'Table (2)'[Norm] )
        )
    )
RETURN
    IF ( _PART1 = BLANK (), _PART2, _VALUE1 )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can download my attatchment to learn more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 08:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SOS-HELP-related-or-lookupvalue-from-another-table/m-p/3350521#M125806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-26T08:41:59Z</dc:date>
    </item>
  </channel>
</rss>

