<?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: Dax Measure for P&amp;amp;L vertical Analysis in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3307034#M123526</link>
    <description>&lt;P&gt;As requestd in my previous message, share the download link of the PBI file.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 23:16:36 GMT</pubDate>
    <dc:creator>Ashish_Mathur</dc:creator>
    <dc:date>2023-06-28T23:16:36Z</dc:date>
    <item>
      <title>Dax Measure for P&amp;L vertical Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3304499#M123387</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I am seeking assistance in creating a measure to calculate the percentage of Sales for all the amounts in the "Sub-Type" column of my profit and loss table. Unfortunately, I have not been able to obtain the desired result so far. Initially, I attempted to calculate the total sales and then divide each line item by this value using a measure called "Vertical Analysis." However, this approach only provides the percentage for the Sales item, leaving the other line items such as COGS and other OpEx items blank.&lt;/P&gt;&lt;P&gt;I would greatly appreciate any help you can provide to address this issue.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Sales = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&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;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(PL_Unpivot[Amount]),'PL-Category'[Category]= &lt;/SPAN&gt;&lt;SPAN&gt;"Sales"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Vertical Analysis = (&lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;PL_Unpivot&lt;/SPAN&gt;&lt;SPAN&gt;[Sub-Type]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:16:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3304499#M123387</guid>
      <dc:creator>Nauman</dc:creator>
      <dc:date>2023-06-27T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure for P&amp;L vertical Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3304546#M123389</link>
      <description>&lt;P&gt;hello your measure total sales is only calculating catehory = sales so anything ese will return 0 unless its sales so in vertical analysis,&amp;nbsp;&lt;BR /&gt;instaed of&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Total Sales]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;PL_Unpivot&lt;/SPAN&gt;&lt;SPAN&gt;[Sub-Type]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;BR /&gt;use&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM([amount])&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;PL_Unpivot&lt;/SPAN&gt;&lt;SPAN&gt;[Sub-Type]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:34:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3304546#M123389</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-06-27T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure for P&amp;L vertical Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3304660#M123398</link>
      <description>&lt;P&gt;The measure is still yielding the same result. However, the measure provided below is functioning to some extent by dividing each category's total by its corresponding line item. However, what I actually want is to divide all the line items by the total sales. For instance, if we have a total sales of 100, COGS of 50, and a purchase amount of 25, the percentage should be calculated as 25% (i.e., 25/100), rather than 25/50 (the total of COGS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Vertical Analysis = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(PL_Unpivot[Amount]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(PL_Unpivot[Amount]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(PL_Unpivot[Sub-Type])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jun 2023 16:25:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3304660#M123398</guid>
      <dc:creator>Nauman</dc:creator>
      <dc:date>2023-06-27T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure for P&amp;L vertical Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3305246#M123434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Share the download link of the PBI file and show the expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 23:56:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3305246#M123434</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2023-06-27T23:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure for P&amp;L vertical Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3306257#M123489</link>
      <description>&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;Please find below the screenshot of my desired result (Yellow highlighted columns), where each line item is divided by the total sales or net revenue.&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;&lt;P&gt;below is my data model&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 13:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3306257#M123489</guid>
      <dc:creator>Nauman</dc:creator>
      <dc:date>2023-06-28T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure for P&amp;L vertical Analysis</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3307034#M123526</link>
      <description>&lt;P&gt;As requestd in my previous message, share the download link of the PBI file.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 23:16:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-for-P-amp-L-vertical-Analysis/m-p/3307034#M123526</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2023-06-28T23:16:36Z</dc:date>
    </item>
  </channel>
</rss>

