<?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: Switch logic not pulling in column from another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216258#M117429</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534480" data-lia-user-login="RSMIT221" class="lia-mention lia-mention-user"&gt;RSMIT221&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You creating a calculated column in a table and referencing another column in another table without aggregation which not allowed. If you need to access the row level of another table you need to iterate that table using FILTER or X-Aggregators or any iteration function.&amp;nbsp;&lt;BR /&gt;2. Referencing measures in the formula of a calculated column is not a good practice.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 17:52:00 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-02T17:52:00Z</dc:date>
    <item>
      <title>Switch logic not pulling in column from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216145#M117420</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to adjust my Switch statemnt so that I do not have to tediously input vlaues when I have to update the dashboard. Above line "3" is my old logic. Line "5 " begins my new logic, where I am trying to say if the code = 1003, and the LOS O/E is &amp;lt; [P95] (which is coming from another table) then return "P95".&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;Here is the [P95] column&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I get says "A single value for column "P95" cannot be determind.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationbetween the tables are many to many (*:*) and being cross filtered in both directions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 16:37:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216145#M117420</guid>
      <dc:creator>RSMIT221</dc:creator>
      <dc:date>2023-05-02T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Switch logic not pulling in column from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216225#M117426</link>
      <description>&lt;P&gt;I think you have an error in your code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try in the end [Viz Q and A ref code] =1003 &amp;amp;&amp;amp; [LOS O/E] &amp;lt;=('Los Baseline and percentile rank'[P95]), "95")&lt;/P&gt;&lt;P&gt;As you see you missed a bracket&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:34:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216225#M117426</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-02T17:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Switch logic not pulling in column from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216258#M117429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="534480" data-lia-user-login="RSMIT221" class="lia-mention lia-mention-user"&gt;RSMIT221&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You creating a calculated column in a table and referencing another column in another table without aggregation which not allowed. If you need to access the row level of another table you need to iterate that table using FILTER or X-Aggregators or any iteration function.&amp;nbsp;&lt;BR /&gt;2. Referencing measures in the formula of a calculated column is not a good practice.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 17:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-logic-not-pulling-in-column-from-another-table/m-p/3216258#M117429</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-02T17:52:00Z</dc:date>
    </item>
  </channel>
</rss>

