<?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: [Sales portfolio] DAX expression to create dynamic product share based on slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3751500#M146323</link>
    <description>&lt;P&gt;Thank you very much for your response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="661281" data-lia-user-login="Chakravarthy" class="lia-mention lia-mention-user"&gt;Chakravarthy&lt;/a&gt;, and please excuse my delayed response. I was not able to try out your suggestion until now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution works for getting the dynamic mix, but if I want to calculate the mix deviation between the sales portfolio of the current and the previous year via the following formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mix deviation = (VAR SAL) * (SALES PRICE_PreviousYear) * (VAR DIV_CurrentYear -&amp;nbsp;&lt;SPAN&gt;VAR DIV_PreviousYear)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which includes your solutions VAR SAL and VAR DIV, I get an error message saying that there is a circular dependency between VAR&lt;SPAN&gt;&amp;nbsp;DIV_CurrentYear, Mix deviation, and VAR DIV_CurrentYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know what could cause this error?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 13:41:06 GMT</pubDate>
    <dc:creator>powerapprentice</dc:creator>
    <dc:date>2024-03-08T13:41:06Z</dc:date>
    <item>
      <title>[Sales portfolio] DAX expression to create dynamic product share based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3733800#M145525</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a sales portfolio for which I would like to write a measure in DAX that returns the dynamic share of one or multiple products based on the selection via a slicer in list form.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The portfolio consists of products A, B, C with a turnover of 30 each. In sum, we'd have a turnover of 90 and a share of 1/3 per product. If I select product A and B now, my current setup in DAX would still return a share of 1/3 for each, A and B. However what I want it to return is a share of 1/2 per product as the combined turnover based on the selection in the slicer now is 60 instead of 90 as product C is not considered. The shares are displayed in a bar chart with each product on the x-axis and the mixes on the y-axis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate if someone could help me! If required, I can also post my (false) code that currently returns the incorrect result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 15:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3733800#M145525</guid>
      <dc:creator>powerapprentice</dc:creator>
      <dc:date>2024-02-29T15:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: [Sales portfolio] DAX expression to create dynamic product share based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3734324#M145546</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698430" data-lia-user-login="powerapprentice" class="lia-mention lia-mention-user"&gt;powerapprentice&lt;/a&gt;&amp;nbsp;- Please create a meaure with the below code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;SAL&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;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Sales]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Column1]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;DIV&lt;/SPAN&gt;&lt;SPAN&gt; = &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;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Sales]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;SAL&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;DIV&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Feb 2024 17:36:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3734324#M145546</guid>
      <dc:creator>Chakravarthy</dc:creator>
      <dc:date>2024-02-29T17:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: [Sales portfolio] DAX expression to create dynamic product share based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3751500#M146323</link>
      <description>&lt;P&gt;Thank you very much for your response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="661281" data-lia-user-login="Chakravarthy" class="lia-mention lia-mention-user"&gt;Chakravarthy&lt;/a&gt;, and please excuse my delayed response. I was not able to try out your suggestion until now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution works for getting the dynamic mix, but if I want to calculate the mix deviation between the sales portfolio of the current and the previous year via the following formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mix deviation = (VAR SAL) * (SALES PRICE_PreviousYear) * (VAR DIV_CurrentYear -&amp;nbsp;&lt;SPAN&gt;VAR DIV_PreviousYear)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which includes your solutions VAR SAL and VAR DIV, I get an error message saying that there is a circular dependency between VAR&lt;SPAN&gt;&amp;nbsp;DIV_CurrentYear, Mix deviation, and VAR DIV_CurrentYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know what could cause this error?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 13:41:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-portfolio-DAX-expression-to-create-dynamic-product-share/m-p/3751500#M146323</guid>
      <dc:creator>powerapprentice</dc:creator>
      <dc:date>2024-03-08T13:41:06Z</dc:date>
    </item>
  </channel>
</rss>

