<?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: Display Number and Percentage and retain Numeric value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330876#M171913</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="803517" data-lia-user-login="Silvard" class="lia-mention lia-mention-user"&gt;Silvard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can achieve this by simply formatting the measure in DAX to display both the numeric value and its percentage. Use the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MyFormattedMeasure = 
VAR TotalValue = CALCULATE(SUM('YourTable'[YourColumn]), ALL('YourTable'))
RETURN 
    FORMAT(SUM('YourTable'[YourColumn]), "0.00") &amp;amp; " (" &amp;amp; 
    FORMAT(DIVIDE(SUM('YourTable'[YourColumn]), TotalValue), "0.00%") &amp;amp; ")"
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;This measure dynamically calculates and formats the numeric value alongside its percentage of the grand total in one step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 13:27:13 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2024-12-16T13:27:13Z</dc:date>
    <item>
      <title>Display Number and Percentage and retain Numeric value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330819#M171911</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to do the age old “look like excel” in which the value we are trying to replicate shows a number for said value then a percentage of the grand total. Is there a way to show both at the same time without just making a duplicate of the value i am using and while retaining the numeric value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suspect a calculation group would be the way to achieve this, but unsure how to implement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 12:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330819#M171911</guid>
      <dc:creator>Silvard</dc:creator>
      <dc:date>2024-12-16T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display Number and Percentage and retain Numeric value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330876#M171913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="803517" data-lia-user-login="Silvard" class="lia-mention lia-mention-user"&gt;Silvard&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can achieve this by simply formatting the measure in DAX to display both the numeric value and its percentage. Use the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MyFormattedMeasure = 
VAR TotalValue = CALCULATE(SUM('YourTable'[YourColumn]), ALL('YourTable'))
RETURN 
    FORMAT(SUM('YourTable'[YourColumn]), "0.00") &amp;amp; " (" &amp;amp; 
    FORMAT(DIVIDE(SUM('YourTable'[YourColumn]), TotalValue), "0.00%") &amp;amp; ")"
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;This measure dynamically calculates and formats the numeric value alongside its percentage of the grand total in one step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 13:27:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330876#M171913</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-12-16T13:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display Number and Percentage and retain Numeric value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330879#M171914</link>
      <description>&lt;P&gt;I did something similar with a calculation group to show the value and then then year on year % change, using the below calculation item&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Value ( YoY%) = 
VAR _CurrentValue = SELECTEDMEASURE()
VAR _PrevYearValue = CALCULATE(
    SELECTEDMEASURE(),
    DATEADD( 'Calendar'[Calendar_Date], -1, YEAR )
)
VAR _YoY = DIVIDE( _CurrentValue - _PrevYearValue, _PrevYearValue )
VAR Result = FORMAT( _CurrentValue, SELECTEDMEASUREFORMATSTRING() ) &amp;amp; " ( " 
    &amp;amp; FORMAT( _YoY, "0.0%") &amp;amp; " )"
RETURN Result&lt;/LI-CODE&gt;
&lt;P&gt;You could also do something similar with the Format String Expression using dynamic format strings.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 13:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4330879#M171914</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-12-16T13:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display Number and Percentage and retain Numeric value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4332033#M171985</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your input to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up finding the solution through this article&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/improving-data-labels-with-format-strings/" target="_blank"&gt;https://www.sqlbi.com/articles/improving-data-labels-with-format-strings/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically utilising the example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Format String Expression for the Total Views measure in Views table&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 03:27:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Number-and-Percentage-and-retain-Numeric-value/m-p/4332033#M171985</guid>
      <dc:creator>Silvard</dc:creator>
      <dc:date>2024-12-17T03:27:00Z</dc:date>
    </item>
  </channel>
</rss>

