<?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: Getting error in executing the Measure in the DAX Studio? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3918926#M152541</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but in DAX Studio, please try to write DAX query something like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DEFINE
	MEASURE 'measuretablename'[UniqueUsersCount] = CALCULATE(
			DISTINCTCOUNT(data[user]),
			FILTER(
				data,
				(data[type] = 4 || data[type] = 6) &amp;amp;&amp;amp; data[appid] &amp;gt; 0
			)
		)


EVALUATE
	SUMMARIZECOLUMNS(
		"UniqueUsersCount", 'measuretablename'[UniqueUsersCount]
	)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 02:51:57 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-05-15T02:51:57Z</dc:date>
    <item>
      <title>Getting error in executing the Measure in the DAX Studio?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3918845#M152540</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the error in Dax studio while executing the Measure? The same works in PBI cloud Measue.&lt;/P&gt;&lt;P&gt;What could be the reason?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 02:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3918845#M152540</guid>
      <dc:creator>ssspk</dc:creator>
      <dc:date>2024-05-15T02:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in executing the Measure in the DAX Studio?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3918926#M152541</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but in DAX Studio, please try to write DAX query something like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DEFINE
	MEASURE 'measuretablename'[UniqueUsersCount] = CALCULATE(
			DISTINCTCOUNT(data[user]),
			FILTER(
				data,
				(data[type] = 4 || data[type] = 6) &amp;amp;&amp;amp; data[appid] &amp;gt; 0
			)
		)


EVALUATE
	SUMMARIZECOLUMNS(
		"UniqueUsersCount", 'measuretablename'[UniqueUsersCount]
	)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 02:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3918926#M152541</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-05-15T02:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in executing the Measure in the DAX Studio?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3919027#M152547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="622485" data-lia-user-login="ssspk" class="lia-mention lia-mention-user"&gt;ssspk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a DAX query, the query keyword "EVALUATE" must be declared first, and the DAX query must return the table at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore, you can rewrite your query like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
{
    CALCULATE(
        DISTINCTCOUNT(data[user]),
        FILTER(
            data,
            (data[type] = 4 || data[type] = 6) &amp;amp;&amp;amp; data[appid] &amp;gt; 0
        )
    )
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where "{}" acts as a table constructor syntax that can be used to create a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 03:36:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-error-in-executing-the-Measure-in-the-DAX-Studio/m-p/3919027#M152547</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-15T03:36:18Z</dc:date>
    </item>
  </channel>
</rss>

