<?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: Requesting help with DAX Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3021719#M102860</link>
    <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418694" data-lia-user-login="vmurali1" class="lia-mention lia-mention-user"&gt;vmurali1&lt;/a&gt;&amp;nbsp;if you want the #cases to be constant by year, you can try to first create a new column year with formula&lt;/P&gt;&lt;P&gt;Year= YEAR(table[case date])&lt;/P&gt;&lt;P&gt;Then create a new measure&lt;/P&gt;&lt;P&gt;# cases by year = Calculate(distinctcount[column you want],allexcept(table,table[Year]))&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jan 2023 22:45:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-15T22:45:17Z</dc:date>
    <item>
      <title>Requesting help with DAX Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3021716#M102859</link>
      <description>&lt;P&gt;Team,&amp;nbsp;&lt;BR /&gt;I have a matrix where i am trying to calculate cost per case. The formula for that would be - Total Product Cost / Total# of Cases. I created two measures. One to sum the total product cost and another to calculate distinct count of the cases and then created a third measure called cost per case utilizing the two measures for numerator and denominator.&lt;/P&gt;&lt;P&gt;Now, if you look at the Category D in the attached snapshot, it calculates the total product cost&amp;nbsp; of each of the items in the drill down and takes the distinct number of cases where that item had been utilized - Which is correct but, is there any way i can have the denominator constant (Total # of cases by distinct names and by year since i might be adding a slicer for year in the future)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if i breakdown the 3164.91, i should be able to see the breakdown of what comprises to 3614.91 rather than an average. In other words, i want the product cost of each item divided by the total # of cases for each names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone assist me with this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The data structure looks like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 22:35:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3021716#M102859</guid>
      <dc:creator>vmurali1</dc:creator>
      <dc:date>2023-01-15T22:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting help with DAX Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3021719#M102860</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418694" data-lia-user-login="vmurali1" class="lia-mention lia-mention-user"&gt;vmurali1&lt;/a&gt;&amp;nbsp;if you want the #cases to be constant by year, you can try to first create a new column year with formula&lt;/P&gt;&lt;P&gt;Year= YEAR(table[case date])&lt;/P&gt;&lt;P&gt;Then create a new measure&lt;/P&gt;&lt;P&gt;# cases by year = Calculate(distinctcount[column you want],allexcept(table,table[Year]))&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 22:45:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3021719#M102860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-15T22:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting help with DAX Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3023305#M102966</link>
      <description>&lt;P&gt;Thank you for the response but, i want the number of cases to be constant by name (first col) and year.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 13:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3023305#M102966</guid>
      <dc:creator>vmurali1</dc:creator>
      <dc:date>2023-01-16T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting help with DAX Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3023461#M102977</link>
      <description>&lt;P&gt;Actually, i got the logic and it worked perfect. Thanks for the guidance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 14:18:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3023461#M102977</guid>
      <dc:creator>vmurali1</dc:creator>
      <dc:date>2023-01-16T14:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting help with DAX Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3023484#M102979</link>
      <description>&lt;P&gt;If you want the # cases by year according to column "name" then just do&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# cases by year = Calculate(count(table[name],allexcept(table,table[Year],table[name]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 14:26:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Requesting-help-with-DAX-Calculation/m-p/3023484#M102979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-16T14:26:19Z</dc:date>
    </item>
  </channel>
</rss>

