<?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: Converting Calculated column into Measure or IF statement return Alternative in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3474665#M132725</link>
    <description>&lt;P&gt;You can probably do so using the Dynamic Formatting Strings if you have a more recent version of powerbi: &lt;A href="https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 03:03:53 GMT</pubDate>
    <dc:creator>vicky_</dc:creator>
    <dc:date>2023-10-13T03:03:53Z</dc:date>
    <item>
      <title>Converting Calculated column into Measure or IF statement return Alternative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3474495#M132714</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I convert this Dax to measure,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CARER EXCESS = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;([Additional hrs to meet target care min] &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,[Additiona hrs to meet target care min],&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)*-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Or Alternatively How can i return "-" instead of 0 in the same dad.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rabi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Oct 2023 01:08:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3474495#M132714</guid>
      <dc:creator>Rabi</dc:creator>
      <dc:date>2023-10-13T01:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Calculated column into Measure or IF statement return Alternative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3474665#M132725</link>
      <description>&lt;P&gt;You can probably do so using the Dynamic Formatting Strings if you have a more recent version of powerbi: &lt;A href="https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 03:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3474665#M132725</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-10-13T03:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Calculated column into Measure or IF statement return Alternative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3478421#M132945</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609564" data-lia-user-login="Rabi" class="lia-mention lia-mention-user"&gt;Rabi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I'm wondering that you want to change a negative number in a column of data to a positive number and replace the positive number with a "-"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a simple test and the result is as follows：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CARER EXCESS = 
VAR _1= 
if(MIN('Table'[Number]) &amp;lt;0,MIN('Table'[Number]),0)*-1
VAR _2 = IF(_1 = 0,"-",_1)
RETURN
_2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please feel free to correct me and provide more information if I have misunderstood you!&lt;/P&gt;
&lt;P&gt;An attachment for your reference. Hope it helps!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider &lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-Calculated-column-into-Measure-or-IF-statement-return/m-p/3478421#M132945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-16T09:43:30Z</dc:date>
    </item>
  </channel>
</rss>

