<?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: How to populate the DAX in a measure from a data column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028747#M159195</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="514559" data-lia-user-login="ells69" class="lia-mention lia-mention-user"&gt;ells69&lt;/a&gt;, and thank you for sharing your question with the Community.&amp;nbsp; Remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&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;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&amp;nbsp; Proud to be a Super User!&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jul 2024 14:43:56 GMT</pubDate>
    <dc:creator>foodd</dc:creator>
    <dc:date>2024-07-07T14:43:56Z</dc:date>
    <item>
      <title>How to populate the DAX in a measure from a data column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028703#M159187</link>
      <description>&lt;P&gt;I have a formulas table&lt;/P&gt;&lt;P&gt;ID MeasureName DAXFormula&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total Sales&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUM('Sales'[Amount])&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total Cost&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM('Cost'[Amount])&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Profit&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Total Sales] - [Total Cost]&lt;BR /&gt;&lt;BR /&gt;What I want is my data set to have the measures already there and then the values come from the formula.&lt;BR /&gt;SO when I load \refresh the data if the values in the DAX formula have changed then the measures change.&lt;BR /&gt;&lt;BR /&gt;Kind of like the old dynamic SQL&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;DECLARE&lt;/SPAN&gt; &lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;SQL&lt;/SPAN&gt; &lt;SPAN class=""&gt;nvarchar&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;1000&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;declare&lt;/SPAN&gt; &lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;Pid&lt;/SPAN&gt; &lt;SPAN class=""&gt;varchar&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;50&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;set&lt;/SPAN&gt; &lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;pid&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'680'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;SET&lt;/SPAN&gt; &lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;SQL&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'SELECT ProductID,Name,ProductNumber FROM SalesLT.Product where ProductID = '&lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt; &lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;Pid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;EXEC&lt;/SPAN&gt; &lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;@&lt;/SPAN&gt;&lt;SPAN class=""&gt;SQL&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Jul 2024 13:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028703#M159187</guid>
      <dc:creator>ells69</dc:creator>
      <dc:date>2024-07-07T13:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate the DAX in a measure from a data column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028747#M159195</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="514559" data-lia-user-login="ells69" class="lia-mention lia-mention-user"&gt;ells69&lt;/a&gt;, and thank you for sharing your question with the Community.&amp;nbsp; Remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.&lt;BR /&gt;&lt;BR /&gt;&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;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&amp;nbsp; Proud to be a Super User!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 14:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028747#M159195</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-07T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate the DAX in a measure from a data column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028931#M159220</link>
      <description>&lt;P&gt;ok&lt;BR /&gt;Cant upload the link as the address contains sensitive info&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried to add screen shots but that did not work either&lt;BR /&gt;&lt;BR /&gt;It is self explanatory in the post, Can you populate the DAX of a measure from a table in Power BI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 21:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-populate-the-DAX-in-a-measure-from-a-data-column/m-p/4028931#M159220</guid>
      <dc:creator>ells69</dc:creator>
      <dc:date>2024-07-07T21:10:09Z</dc:date>
    </item>
  </channel>
</rss>

