<?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 Display % in a Matrix visual that has decimal number formatting - within multiple filtered contexts in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2506834#M69436</link>
    <description>&lt;P&gt;Hello DAXperts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix visual showing my data from a "MainData" table.&lt;BR /&gt;I have been able to display % numbers for selected rows while the rest of the matrix is decimal formatted. But this only works within certain filtered contexts based on the selected slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, I have a Profit &amp;amp; Loss report, I want this report to &lt;STRONG&gt;show the correct calculated % values&lt;/STRONG&gt; &lt;STRONG&gt;for the "Gross Profit %" row&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, the data does contain the correct decimal values for the % equivalent number for "Gross Profit %". But the numbers are correct when only a single Business Unit is selected on the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, the GP% can be calculated by use of a measure or something similar (but I have not gone this route):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; GP% = DIVIDE( CALCULATE( [PL], 'MainData'[L1] = "Gross Profit", CALCULATE( [PL], 'MainData'[L1] = "Revenue" ) )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The measure I really need help with is [ActualsPL w %] or [ComparisonPL w %].&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;See below image and attached &lt;A title="PBIX File" href="https://www.dropbox.com/s/i4j6bryyu16q3xr/FW%20v0.1%2020220510%20Copy.pbix?dl=0" target="_blank" rel="noopener"&gt;PBIX file&lt;/A&gt;.&lt;BR /&gt;Any suggestions or workarounds is much appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 07:33:24 GMT</pubDate>
    <dc:creator>Khang</dc:creator>
    <dc:date>2022-05-11T07:33:24Z</dc:date>
    <item>
      <title>Display % in a Matrix visual that has decimal number formatting - within multiple filtered contexts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2506834#M69436</link>
      <description>&lt;P&gt;Hello DAXperts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix visual showing my data from a "MainData" table.&lt;BR /&gt;I have been able to display % numbers for selected rows while the rest of the matrix is decimal formatted. But this only works within certain filtered contexts based on the selected slicers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately, I have a Profit &amp;amp; Loss report, I want this report to &lt;STRONG&gt;show the correct calculated % values&lt;/STRONG&gt; &lt;STRONG&gt;for the "Gross Profit %" row&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, the data does contain the correct decimal values for the % equivalent number for "Gross Profit %". But the numbers are correct when only a single Business Unit is selected on the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, the GP% can be calculated by use of a measure or something similar (but I have not gone this route):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; GP% = DIVIDE( CALCULATE( [PL], 'MainData'[L1] = "Gross Profit", CALCULATE( [PL], 'MainData'[L1] = "Revenue" ) )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The measure I really need help with is [ActualsPL w %] or [ComparisonPL w %].&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;See below image and attached &lt;A title="PBIX File" href="https://www.dropbox.com/s/i4j6bryyu16q3xr/FW%20v0.1%2020220510%20Copy.pbix?dl=0" target="_blank" rel="noopener"&gt;PBIX file&lt;/A&gt;.&lt;BR /&gt;Any suggestions or workarounds is much appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 07:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2506834#M69436</guid>
      <dc:creator>Khang</dc:creator>
      <dc:date>2022-05-11T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Display % in a Matrix visual that has decimal number formatting - within multiple filtered contexts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2516272#M69997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374579" data-lia-user-login="Khang" class="lia-mention lia-mention-user"&gt;Khang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please modify the measure [ShowPL].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ShowPL = 
IF( SELECTEDVALUE(Tbl_Glb_Show[Show]) = "YTD", 

    IF( SELECTEDVALUE( MainData[L1] ) = "Gross Profit %",
        CALCULATE( [PL YTD], MainData[L1] = "Gross Profit" &amp;amp;&amp;amp; MainData[Figures] = "Actuals") / CALCULATE( [PL YTD], MainData[L1] = "Revenue" &amp;amp;&amp;amp; MainData[Figures] = "Actuals"),
        CALCULATE( [PL YTD], MainData[Figures] = "Actuals")),

    IF( SELECTEDVALUE( MainData[L1] ) = "Gross Profit %",
        CALCULATE( [PL], MainData[L1] = "Gross Profit" &amp;amp;&amp;amp; MainData[Figures] = "Actuals", ALLSELECTED(MainData)) / CALCULATE( [PL], MainData[L1] = "Revenue" &amp;amp;&amp;amp; MainData[Figures] = "Actuals", ALLSELECTED(MainData)),
        CALCULATE( [PL], MainData[Figures] = "Actuals"))
        )&lt;/LI-CODE&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;
&lt;P&gt;If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Winniz&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 05:04:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2516272#M69997</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-05-16T05:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display % in a Matrix visual that has decimal number formatting - within multiple filtered contexts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2522002#M70368</link>
      <description>&lt;P&gt;Hi Winniz,&lt;BR /&gt;This worked perfectly.&lt;BR /&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 02:49:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-Matrix-visual-that-has-decimal-number-formatting/m-p/2522002#M70368</guid>
      <dc:creator>Khang</dc:creator>
      <dc:date>2022-05-18T02:49:38Z</dc:date>
    </item>
  </channel>
</rss>

