<?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: Dynamic Format values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4036347#M159967</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618120" data-lia-user-login="mhablas426" class="lia-mention lia-mention-user"&gt;mhablas426&lt;/a&gt;&amp;nbsp;, Try this measure&lt;/P&gt;
&lt;P&gt;FormattedFuelQuantity =&lt;BR /&gt;VAR Quantity = 'Fuel Formulas'[Fuel Total Quantity]&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;gt;= 1000000,&lt;BR /&gt;FORMAT(Quantity, "0,,.00 M"),&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;gt;= 1000,&lt;BR /&gt;FORMAT(Quantity, "0,.00 K"),&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;lt;= -1000000,&lt;BR /&gt;FORMAT(Quantity, "0,,.00 M"),&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;lt;= -1000,&lt;BR /&gt;FORMAT(Quantity, "0,.00 K"),&lt;BR /&gt;FORMAT(Quantity, "0.00")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 06:23:10 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-07-11T06:23:10Z</dc:date>
    <item>
      <title>Dynamic Format values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028617#M159179</link>
      <description>&lt;P&gt;Dears&lt;BR /&gt;I would like to complete that format to include minus signs in front of negative values.&lt;BR /&gt;the expected result to be (-1.2m) ,(-12.5K)&lt;BR /&gt;Thanks,&lt;BR /&gt;DAX format I used:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[Samperiodlast year Variance]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1000000&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"0,,.00 M"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;[Samperiodlast year Variance]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"0,.00 K"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"0.00"&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:48:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028617#M159179</guid>
      <dc:creator>mhablas426</dc:creator>
      <dc:date>2024-07-09T11:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028632#M159180</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618120" data-lia-user-login="mhablas426" class="lia-mention lia-mention-user"&gt;mhablas426&lt;/a&gt;, and thank you for sharing you question with members of the Community Forum who are supportive.&amp;nbsp; &amp;nbsp;Remember to adhere to the decorum of the Community Forum when asking a question.&lt;BR /&gt;&lt;BR /&gt;Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&amp;nbsp; Proud to be a Super User!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 11:20:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028632#M159180</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-07T11:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028650#M159182</link>
      <description>&lt;P&gt;Thanks, I have re-edited my message to be clear&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 11:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028650#M159182</guid>
      <dc:creator>mhablas426</dc:creator>
      <dc:date>2024-07-07T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028711#M159189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618120" data-lia-user-login="mhablas426" class="lia-mention lia-mention-user"&gt;mhablas426&lt;/a&gt;&amp;nbsp;- Can you try the below measure to report the expected result with () for negative&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formatted Value =&lt;BR /&gt;VAR Value = [Samperiodlast year Variance]&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;ABS(Value) &amp;gt;= 1000000,&lt;BR /&gt;IF(Value &amp;lt; 0,&lt;BR /&gt;"-" &amp;amp; FORMAT(ABS(Value) / 1000000, "0.0") &amp;amp; "m",&lt;BR /&gt;FORMAT(Value / 1000000, "0.0") &amp;amp; "m"&lt;BR /&gt;),&lt;BR /&gt;IF(&lt;BR /&gt;ABS(Value) &amp;gt;= 1000,&lt;BR /&gt;IF(Value &amp;lt; 0,&lt;BR /&gt;"-" &amp;amp; FORMAT(ABS(Value) / 1000, "0.0") &amp;amp; "K",&lt;BR /&gt;FORMAT(Value / 1000, "0.0") &amp;amp; "K"&lt;BR /&gt;),&lt;BR /&gt;FORMAT(Value, "0.00")&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 13:32:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4028711#M159189</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-07-07T13:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4032424#M159530</link>
      <description>&lt;P&gt;I got those errors, could you assist, please&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4032424#M159530</guid>
      <dc:creator>mhablas426</dc:creator>
      <dc:date>2024-07-09T12:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4036347#M159967</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618120" data-lia-user-login="mhablas426" class="lia-mention lia-mention-user"&gt;mhablas426&lt;/a&gt;&amp;nbsp;, Try this measure&lt;/P&gt;
&lt;P&gt;FormattedFuelQuantity =&lt;BR /&gt;VAR Quantity = 'Fuel Formulas'[Fuel Total Quantity]&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;gt;= 1000000,&lt;BR /&gt;FORMAT(Quantity, "0,,.00 M"),&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;gt;= 1000,&lt;BR /&gt;FORMAT(Quantity, "0,.00 K"),&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;lt;= -1000000,&lt;BR /&gt;FORMAT(Quantity, "0,,.00 M"),&lt;BR /&gt;IF (&lt;BR /&gt;Quantity &amp;lt;= -1000,&lt;BR /&gt;FORMAT(Quantity, "0,.00 K"),&lt;BR /&gt;FORMAT(Quantity, "0.00")&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 06:23:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-values/m-p/4036347#M159967</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-11T06:23:10Z</dc:date>
    </item>
  </channel>
</rss>

