<?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 Data Conversion (Number to Currency) not applying inside measure. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1042422#M14002</link>
    <description>&lt;P&gt;Inside my report, the user uses a slicer to narrow down to a single specific project. It will then show data related to a single project and evaluate the project status based on a couple of indicators. It appears that when I try to report a number with the SELECTEDVALUE command I do not receive any previous formatting I made in the modeling tab. When I also try to manually apply a conversion inside the DAX I do not get the expected results. The SELECTEDVALUE remains a number. ROUND command works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the proper way to perform this action?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Result: Billing was $2229.50 over the actual cost for the past 2 months.&lt;/P&gt;&lt;P&gt;Expected Result:&amp;nbsp;Billing was $$2,229.50 over the actual cost for the past 2 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current DAX Formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1 =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH(TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ISBLANK(SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])),"Calculation Error",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])&amp;gt;0,"Billing was $" &amp;amp; &lt;FONT color="#FF0000"&gt;&lt;U&gt;CURRENCY(SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0]))&lt;/U&gt;&lt;/FONT&gt; &amp;amp; " over the actual cost for the past 2 months",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])&amp;lt;0,"Billing was $" &amp;amp; &lt;FONT color="#FF0000"&gt;(ROUND(SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])*-1,0))&lt;/FONT&gt; &amp;amp; " under the actual cost for the past 2 months")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 22 Apr 2020 19:52:54 GMT</pubDate>
    <dc:creator>HillUser1</dc:creator>
    <dc:date>2020-04-22T19:52:54Z</dc:date>
    <item>
      <title>Data Conversion (Number to Currency) not applying inside measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1042422#M14002</link>
      <description>&lt;P&gt;Inside my report, the user uses a slicer to narrow down to a single specific project. It will then show data related to a single project and evaluate the project status based on a couple of indicators. It appears that when I try to report a number with the SELECTEDVALUE command I do not receive any previous formatting I made in the modeling tab. When I also try to manually apply a conversion inside the DAX I do not get the expected results. The SELECTEDVALUE remains a number. ROUND command works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the proper way to perform this action?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Result: Billing was $2229.50 over the actual cost for the past 2 months.&lt;/P&gt;&lt;P&gt;Expected Result:&amp;nbsp;Billing was $$2,229.50 over the actual cost for the past 2 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current DAX Formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 1 =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH(TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ISBLANK(SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])),"Calculation Error",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])&amp;gt;0,"Billing was $" &amp;amp; &lt;FONT color="#FF0000"&gt;&lt;U&gt;CURRENCY(SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0]))&lt;/U&gt;&lt;/FONT&gt; &amp;amp; " over the actual cost for the past 2 months",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])&amp;lt;0,"Billing was $" &amp;amp; &lt;FONT color="#FF0000"&gt;(ROUND(SELECTEDVALUE(V_PBI_HMC_JOB_PROJECTION_DATA[LogicSegment11_0])*-1,0))&lt;/FONT&gt; &amp;amp; " under the actual cost for the past 2 months")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Apr 2020 19:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1042422#M14002</guid>
      <dc:creator>HillUser1</dc:creator>
      <dc:date>2020-04-22T19:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Conversion (Number to Currency) not applying inside measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1043533#M14031</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of your CURRENCY function, did you try with a FORMAT function ?&lt;/P&gt;&lt;P&gt;FORMAT(myvalue,"$ #,###.00")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tell us if it works...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 07:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1043533#M14031</guid>
      <dc:creator>AilleryO</dc:creator>
      <dc:date>2020-04-23T07:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Conversion (Number to Currency) not applying inside measure.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1047651#M14204</link>
      <description>&lt;P&gt;Thank you for your help. It worked and is exactly what I needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Additional information and Options on the format fucntion:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other use:&amp;nbsp;&lt;SPAN class="hljs-built_in"&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class="hljs-number"&gt;12345.67&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class="hljs-string"&gt;"Currency"&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Link&lt;/STRONG&gt;:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/pre-defined-numeric-formats-for-the-format-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/pre-defined-numeric-formats-for-the-format-function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 18:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Data-Conversion-Number-to-Currency-not-applying-inside-measure/m-p/1047651#M14204</guid>
      <dc:creator>HillUser1</dc:creator>
      <dc:date>2020-04-24T18:20:10Z</dc:date>
    </item>
  </channel>
</rss>

