<?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: DAX command from a string in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283888#M55946</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; yes it is absolutely possible. If you are publishing the model in a workspace, you can write&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/instances/use-dynamic-management-views-dmvs-to-monitor-analysis-services?view=asallproducts-allversions" target="_self"&gt;DMV queries&lt;/A&gt;&amp;nbsp; that would return all your measures in a table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select * from $SYSTEM.TMSCHEMA_MEASURES&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="168297" data-lia-user-login="bcdobbs" class="lia-mention lia-mention-user"&gt;bcdobbs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jan 2022 14:35:22 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2022-01-14T14:35:22Z</dc:date>
    <item>
      <title>DAX command from a string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283621#M55925</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to store all my DAX measures in a field in a table.&lt;/P&gt;&lt;P&gt;I'm thinking about creating a kind of knowledge base whre I can store all the measures my company could use. In this table I would have a text field contaning the measure itself, plus others fields for example to explain what the measure does, what are the tables necessary to excute them and may others informations.&lt;/P&gt;&lt;P&gt;I know I can store the measure as a string, but how would I convert that string into a valid DAX command in Power BI?&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 11:27:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283621#M55925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-14T11:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command from a string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283638#M55926</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Not very clear.But seem like you need the list of measure DAX studio can help &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ssbi-blog.de/blog/technical-topics-english/how-to-identify-measures-not-used-in-your-pbix-file/" target="_blank"&gt;https://ssbi-blog.de/blog/technical-topics-english/how-to-identify-measures-not-used-in-your-pbix-file/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Find-the-unused-Measure-Data/td-p/1771801" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Find-the-unused-Measure-Data/td-p/1771801&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case you want to create a power bi table to organize your measure, then refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=b9oDIL8nbu0" target="_blank"&gt;https://www.youtube.com/watch?v=b9oDIL8nbu0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 11:42:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283638#M55926</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-14T11:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command from a string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283649#M55927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was thinking like this:&lt;/P&gt;&lt;P&gt;I have a table called MEASURE_TABLE. In it I would have a varchar field where I would store a measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;idMEASURE&amp;nbsp; &amp;nbsp; &amp;nbsp; dscMEASURE_NAME&amp;nbsp; &amp;nbsp;dscMEASURE_COMMAND&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;DB Date Difference&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Calendario[Date]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Calendario[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to convert the last 2 fields to a valid measure in Power BI?&lt;/P&gt;&lt;P&gt;It's kind of what you can do in T-SQL when you create a command based on a string and execute it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 11:52:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283649#M55927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-14T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command from a string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283666#M55931</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , I doubt that. Power Bi cmdlets is there for automation, but I doubt they do not have add measure &lt;/P&gt;
&lt;P&gt;you can check&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps" target="_blank"&gt;https://docs.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 12:01:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283666#M55931</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-14T12:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command from a string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283888#M55946</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; yes it is absolutely possible. If you are publishing the model in a workspace, you can write&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/instances/use-dynamic-management-views-dmvs-to-monitor-analysis-services?view=asallproducts-allversions" target="_self"&gt;DMV queries&lt;/A&gt;&amp;nbsp; that would return all your measures in a table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select * from $SYSTEM.TMSCHEMA_MEASURES&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="168297" data-lia-user-login="bcdobbs" class="lia-mention lia-mention-user"&gt;bcdobbs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 14:35:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-from-a-string/m-p/2283888#M55946</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2022-01-14T14:35:22Z</dc:date>
    </item>
  </channel>
</rss>

