<?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 DAX Will Not Reference Columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2682688#M80408</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;- Table A: contains project information such as ID, start date, end date, etc. These are all columns.&lt;/P&gt;&lt;P&gt;- Table B: contains financial information such as Total Actuals, Budget, etc. These are all measures based on another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure in Table A that references the Start Date column, as well as two of the financial measures from Table B. However, when trying to create the measure, the "IF" statement will not reference the Start Date column from Table A. Do you know why this is? I am trying to do something like...&lt;/P&gt;&lt;P&gt;IF(And(Year(Project Start Date) = 2021, Total Forecast - Total Actuals &amp;gt; 0), Total Forecast - Total Actuals, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or advice would be much appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 20:35:08 GMT</pubDate>
    <dc:creator>EH_Matt</dc:creator>
    <dc:date>2022-08-04T20:35:08Z</dc:date>
    <item>
      <title>DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2682688#M80408</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;- Table A: contains project information such as ID, start date, end date, etc. These are all columns.&lt;/P&gt;&lt;P&gt;- Table B: contains financial information such as Total Actuals, Budget, etc. These are all measures based on another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure in Table A that references the Start Date column, as well as two of the financial measures from Table B. However, when trying to create the measure, the "IF" statement will not reference the Start Date column from Table A. Do you know why this is? I am trying to do something like...&lt;/P&gt;&lt;P&gt;IF(And(Year(Project Start Date) = 2021, Total Forecast - Total Actuals &amp;gt; 0), Total Forecast - Total Actuals, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or advice would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 20:35:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2682688#M80408</guid>
      <dc:creator>EH_Matt</dc:creator>
      <dc:date>2022-08-04T20:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2682717#M80412</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377746" data-lia-user-login="EH_Matt" class="lia-mention lia-mention-user"&gt;EH_Matt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX cannot find the column because there is no RC (Row Context) provided.&lt;/P&gt;&lt;P&gt;DAX doesn't know which row to specify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe it would be better to use a Calculated Column (RC auto-included) rather than a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following should work for you.&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;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 21:10:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2682717#M80412</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-08-04T21:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2691755#M81083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377746" data-lia-user-login="EH_Matt" class="lia-mention lia-mention-user"&gt;EH_Matt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;AFAIK, current power bi does not support create dynamic calculated columns based on filter effects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice: data level from parent to child, the child not able effect parent level.&lt;/P&gt;&lt;P&gt;query table(query parameter, custom function...) -&amp;gt; data model table(calculate table, calculate column, RLS) -&amp;gt; date view table (measure, slicer, filter)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Moonlight&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 08:17:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2691755#M81083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-10T08:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2697551#M81480</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377746" data-lia-user-login="EH_Matt" class="lia-mention lia-mention-user"&gt;EH_Matt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to get this working with the calculated column?&lt;/P&gt;&lt;P&gt;If so, please consider marking this as a solution.&lt;/P&gt;&lt;P&gt;If not, please let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;is correct that calculated columns cannot dynamically recalculate based on filter (or slicer) selection.&amp;nbsp; However, based on your request, I did not see anything regarding filter or slicer selection.&amp;nbsp; For this reason, I still believe a calculated column is the best solution.&amp;nbsp; (Calculated columns will only recalculate when the data is refreshed.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 14:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2697551#M81480</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-08-12T14:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2697752#M81492</link>
      <description>&lt;P&gt;Thanks for the suggestion. I'm not sure - I think it could've worked, but the way the initial dataset was designed, they have me locked out from creating columns. Thanks for the assist though!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 15:37:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2697752#M81492</guid>
      <dc:creator>EH_Matt</dc:creator>
      <dc:date>2022-08-12T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2697961#M81501</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377746" data-lia-user-login="EH_Matt" class="lia-mention lia-mention-user"&gt;EH_Matt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to hear you are locked out from creating calculated columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create the measure in the following way.&lt;/P&gt;&lt;P&gt;However, you will need to combine the columns from both Table A &amp;amp; Table B into the same table visual.&lt;/P&gt;&lt;P&gt;This is because measures calculate at the&amp;nbsp;&lt;EM&gt;report level&lt;/EM&gt; and not at the&amp;nbsp;&lt;EM&gt;row level.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I left the calculated column (C1 Calc) in the table visual for comparison with the measure (M1 Calc).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 17:49:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2697961#M81501</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-08-12T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Will Not Reference Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2711728#M82411</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377746" data-lia-user-login="EH_Matt" class="lia-mention lia-mention-user"&gt;EH_Matt&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, please share more detailed information to help us clarify your scenario to test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 07:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Will-Not-Reference-Columns/m-p/2711728#M82411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-19T07:15:13Z</dc:date>
    </item>
  </channel>
</rss>

