<?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 To Pull the value from a table with no relationship/ column in common in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2662048#M78988</link>
    <description>&lt;P&gt;Hey there, seems like I need your help once more.&lt;BR /&gt;&lt;BR /&gt;First, what you need to know; there is a table describing phases (A to D), and their respective thresholds (most of them start at 0.8 or 80% to enter "Yellow State").&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; There is a measure calculated, example for Start B phase (Project Name context; Each project has its own Start B phase: the measure displays whether its above or below a given threshold)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This conditional formatting thing is based on &lt;STRONG&gt;"Format" tab&lt;/STRONG&gt;. But, it has to be formatted &lt;EM&gt;&lt;STRONG&gt;based on the table abovementioned&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp;&lt;BR /&gt;Here's what I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;VAR phase_b_condition = 
   How to Pull a corresponding value so it knows it is Phase B?

VAR phase_b_flags = 
    SWITCH ( [phase b Readiness],
        [phase b Readiness] &amp;lt; phase_b_condition, "FlagLow",
        [phase b Readiness] &amp;gt; phase_b_condition, "FlagHigh",
        "FlagMedium"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question as is in the code chunk:&lt;BR /&gt;- How to retrieve a corresponding threshold value for condition from a table that has no relationships with anything else, so I can compare it with the measure result.&lt;BR /&gt;I just don't have enough experience to deal with it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 12:49:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-26T12:49:11Z</dc:date>
    <item>
      <title>To Pull the value from a table with no relationship/ column in common</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2662048#M78988</link>
      <description>&lt;P&gt;Hey there, seems like I need your help once more.&lt;BR /&gt;&lt;BR /&gt;First, what you need to know; there is a table describing phases (A to D), and their respective thresholds (most of them start at 0.8 or 80% to enter "Yellow State").&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; There is a measure calculated, example for Start B phase (Project Name context; Each project has its own Start B phase: the measure displays whether its above or below a given threshold)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This conditional formatting thing is based on &lt;STRONG&gt;"Format" tab&lt;/STRONG&gt;. But, it has to be formatted &lt;EM&gt;&lt;STRONG&gt;based on the table abovementioned&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp;&lt;BR /&gt;Here's what I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;VAR phase_b_condition = 
   How to Pull a corresponding value so it knows it is Phase B?

VAR phase_b_flags = 
    SWITCH ( [phase b Readiness],
        [phase b Readiness] &amp;lt; phase_b_condition, "FlagLow",
        [phase b Readiness] &amp;gt; phase_b_condition, "FlagHigh",
        "FlagMedium"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question as is in the code chunk:&lt;BR /&gt;- How to retrieve a corresponding threshold value for condition from a table that has no relationships with anything else, so I can compare it with the measure result.&lt;BR /&gt;I just don't have enough experience to deal with it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:49:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2662048#M78988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T12:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: To Pull the value from a table with no relationship/ column in common</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2668651#M79497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, I create a sample.&lt;/P&gt;
&lt;P&gt;Table 1:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Table 2:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The two tables don't have relationship, now in my understanding, you want to&amp;nbsp;get which range of Table 2 is in PhaseB according to Table 1, here's my solution, create a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR MAX_phase_b_condition =
    MAXX (
        FILTER ( 'Table 1', 'Table 1'[Phase] = "Start B" ),
        'Table 1'[Max_Threshold]
    )
VAR MIN_phase_b_condition =
    MAXX (
        FILTER ( 'Table 1', 'Table 1'[Phase] = "Start B" ),
        'Table 1'[Min_Threshold]
    )
RETURN
    SWITCH (
        TRUE,
        MAX ( 'Table 2'[phase b Readiness] ) &amp;lt; MIN_phase_b_condition, "FlagLow",
        MAX ( 'Table 2'[phase b Readiness] ) &amp;gt; MAX_phase_b_condition, "FlagHigh",
        "FlagMedium"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Get the result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach my sample below for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 06:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2668651#M79497</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-07-29T06:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: To Pull the value from a table with no relationship/ column in common</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2672081#M79713</link>
      <description>&lt;P&gt;Hey there! I am sorry for the long reply. I'll try it today and will let you know it if it'll work!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 07:53:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2672081#M79713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-01T07:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: To Pull the value from a table with no relationship/ column in common</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2672088#M79714</link>
      <description>&lt;P&gt;Note: Table 2 is a measure. I will also check if it's gonna affect the overall result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 07:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/To-Pull-the-value-from-a-table-with-no-relationship-column-in/m-p/2672088#M79714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-01T07:58:34Z</dc:date>
    </item>
  </channel>
</rss>

