<?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: The format of the measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451548#M27273</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But getting an error:&amp;nbsp; "can not convert value '/' of type Text to type true/false"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my measure is in previous comment.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2020 09:31:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-23T09:31:59Z</dc:date>
    <item>
      <title>The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451144#M27257</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How&amp;nbsp; can bring the following outcome of my measure?&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Basically it is var1 / var2 (var3). But not sure how to wrap it in brackets and separate with the slash.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 06:38:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451144#M27257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-23T06:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451257#M27261</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;assuming they are part of the return&lt;/P&gt;
&lt;P&gt;var1 &amp;amp; " / " &amp;amp; var2&amp;nbsp; &amp;amp; "(" &amp;amp; var3 &amp;amp; ")"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;order replace var1,2 and 3 with measures&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 07:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451257#M27261</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-23T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451284#M27264</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Make sure you convert numbers to string. You can either do it in the variable or directly. See example below&lt;/P&gt;&lt;P&gt;var1 =&amp;nbsp;CONVERT(Table[Amount],STRING)&lt;/P&gt;&lt;P&gt;var2 =&amp;nbsp;CONVERT(Table[Amount2],STRING)&lt;/P&gt;&lt;P&gt;var3 =&amp;nbsp;CONVERT(Table[Percent],STRING)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;var1 &amp;amp; " / " &amp;amp; var2&amp;nbsp;&amp;amp; " (" &amp;amp; var3 &amp;amp;")"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or do it directly in a column. See below:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Column = CONVERT(Table[Amount],STRING) &amp;amp; " / " &amp;amp; CONVERT(Table[Amount2],STRING) &amp;amp; " (" &amp;amp; CONVERT(Table[Percent],STRING) &amp;amp;")"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 07:35:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451284#M27264</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2020-10-23T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451542#M27272</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But getting an error:&amp;nbsp; "can not convert value '/' of type Text to type true/false"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Chat 2 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR People_Count =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISTINCTCOUNT ( 'Teams statistics'[User Principal Name] ) - 1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'user AD'[IsManager] = 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;|| 'user AD'[IsManager] = 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR min_level =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MIN ( 'user AD'[User Org Level] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Yes_Count =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISTINCTCOUNT ( 'Teams statistics'[User Principal Name] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Teams statistics'[Chat] = "Yes",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'user AD'[IsManager] = 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;|| 'user AD'[IsManager] = 0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'user AD'[User Org Level] &amp;lt;&amp;gt; min_level)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR No_Count =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DISTINCTCOUNT ( 'Teams statistics'[User Principal Name] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Teams statistics'[Chat] = "No",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'user AD'[IsManager] = 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;|| 'user AD'[IsManager] = 0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'user AD'[User Org Level] &amp;lt;&amp;gt; min_level&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Percentage = IF (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Yes_Count &amp;gt; 0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE ( Yes_Count, People_Count ), 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONVERT(Yes_Count, STRING) &amp;amp;&amp;amp; "/" &amp;amp;&amp;amp; CONVERT(People_Count, STRING) &amp;amp;&amp;amp; "("&amp;amp;&amp;amp; CONVERT(Percentage, STRING) &amp;amp;&amp;amp;")"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Oct 2020 09:30:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451542#M27272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-23T09:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451548#M27273</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But getting an error:&amp;nbsp; "can not convert value '/' of type Text to type true/false"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my measure is in previous comment.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 09:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451548#M27273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-23T09:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451566#M27274</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;remove double ampersand (&amp;amp;&amp;amp;) and put just one (&amp;amp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace this&lt;/P&gt;&lt;LI-CODE lang="php"&gt;CONVERT(Yes_Count, STRING) &amp;amp;&amp;amp; "/" &amp;amp;&amp;amp; CONVERT(People_Count, STRING) &amp;amp;&amp;amp; "("&amp;amp;&amp;amp; CONVERT(Percentage, STRING) &amp;amp;&amp;amp;")"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With this&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;CONVERT(Yes_Count, STRING) &amp;amp; "/" &amp;amp;&amp;amp; CONVERT(People_Count, STRING) &amp;amp; "("&amp;amp;&amp;amp; CONVERT(Percentage, STRING) &amp;amp;")"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 09:38:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451566#M27274</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2020-10-23T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451750#M27276</link>
      <description>&lt;P&gt;wow, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;, thank you! Will have to change my habbits &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you also happen to know how to format the following variable so it would bring percentage with no decimal places ?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Percentage = IF (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Yes_Count &amp;gt; 0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE ( Yes_Count, People_Count ), 0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Oct 2020 10:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451750#M27276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-23T10:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451770#M27278</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select the Measure from fields section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then on Menu on top --&amp;gt; Column Tools --&amp;gt;Format section (put 0)&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 10:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451770#M27278</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2020-10-23T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: The format of the measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451780#M27279</link>
      <description>&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="61168" data-lia-user-login="themistoklis" class="lia-mention lia-mention-user"&gt;themistoklis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevermind, figured out the formatting part myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks for help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Percentage = FORMAT(IF (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Yes_Count &amp;gt; 0,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE ( Yes_Count, People_Count ), 0), "0%")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Oct 2020 10:46:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-format-of-the-measure/m-p/1451780#M27279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-23T10:46:01Z</dc:date>
    </item>
  </channel>
</rss>

