<?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: how to calculate growth as column with categories in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2267359#M55028</link>
    <description>&lt;P&gt;thank you &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;amitchandak it's work perfectly&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;but i can't transform the tabel to qurey (&amp;nbsp; to unpivot the column)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;is there any way to unpivot the column&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;thank you for responding&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 12:45:27 GMT</pubDate>
    <dc:creator>nada</dc:creator>
    <dc:date>2022-01-05T12:45:27Z</dc:date>
    <item>
      <title>how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266706#M54977</link>
      <description>&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;Hello . &amp;nbsp;I would like to ask whether it is possible to add the monthly and annual change if the data has more than one value for the same month, for example sales 1, sales 2, and sales 3, and 3 citys we have 6 January. How can we add a column and define &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;the monthly change even though there are 3 months at the same time&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;year&lt;/TD&gt;&lt;TD&gt;month&lt;/TD&gt;&lt;TD&gt;city&lt;/TD&gt;&lt;TD&gt;date&lt;/TD&gt;&lt;TD&gt;sales&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;January&lt;/TD&gt;&lt;TD&gt;Jeddah&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;sale 1&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;January&lt;/TD&gt;&lt;TD&gt;Jeddah&lt;/TD&gt;&lt;TD&gt;1/1/2019&lt;/TD&gt;&lt;TD&gt;sale2&lt;/TD&gt;&lt;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lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;February&lt;/TD&gt;&lt;TD&gt;Jeddah&lt;/TD&gt;&lt;TD&gt;2/1/2019&lt;/TD&gt;&lt;TD&gt;sale 3&lt;/TD&gt;&lt;TD&gt;94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;February&lt;/TD&gt;&lt;TD&gt;Riyadh&lt;/TD&gt;&lt;TD&gt;2/1/2019&lt;/TD&gt;&lt;TD&gt;sale 1&lt;/TD&gt;&lt;TD&gt;92&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;February&lt;/TD&gt;&lt;TD&gt;Riyadh&lt;/TD&gt;&lt;TD&gt;2/1/2019&lt;/TD&gt;&lt;TD&gt;sale2&lt;/TD&gt;&lt;TD&gt;94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;February&lt;/TD&gt;&lt;TD&gt;Riyadh&lt;/TD&gt;&lt;TD&gt;2/1/2019&lt;/TD&gt;&lt;TD&gt;sale 3&lt;/TD&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 06:13:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266706#M54977</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-01-05T06:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266739#M54981</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349306" data-lia-user-login="nada" class="lia-mention lia-mention-user"&gt;nada&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you add Expected output from sample data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you want to calculate the change for each month regardless of city?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;LinkedIn:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 06:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266739#M54981</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-05T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266762#M54983</link>
      <description>&lt;PRE&gt;&lt;SPAN class="Y2IQFc"&gt;When adding the growth formula
Prior = CALCULATE(SUM('table'[Value]),PREVIOUSMONTH('table'[Date]),('table'[sales]),('table'[City]))

It does not work because I have a large number of cities and sales, so the month of January is repeated several times and the formula is not read&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jan 2022 06:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266762#M54983</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-01-05T06:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266780#M54985</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349306" data-lia-user-login="nada" class="lia-mention lia-mention-user"&gt;nada&lt;/a&gt; , You should use a date table and try measure like&lt;/P&gt;
&lt;P&gt;Prior = CALCULATE(SUM('table'[Value]),PREVIOUSMONTH('Date'[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Month on Month with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6LUBbvcxtKA" target="_blank"&gt;https://www.youtube.com/watch?v=6LUBbvcxtKA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 07:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266780#M54985</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-05T07:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266818#M54989</link>
      <description>&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;Thanks for answering my questions, actually The problem here is that the Power PI did not read the result of the previous month because there are many classifications, is it possible to find a solution that shows (the previous month, for the same city, for the same commodity) Also, it must be a column, not a measure&lt;/SPAN&gt;&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;</description>
      <pubDate>Wed, 05 Jan 2022 07:23:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266818#M54989</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-01-05T07:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266830#M54991</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349306" data-lia-user-login="nada" class="lia-mention lia-mention-user"&gt;nada&lt;/a&gt; , You are trying to create a column not measure. You should prefer to measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sumx(filter(Table, [city] = earlier([city]) &amp;amp;&amp;amp;[commodity] = earlier([commodity]) &amp;amp;&amp;amp; eomonth([date],-1) = eomonth(earlier([date]),0)), Table[Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 07:33:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2266830#M54991</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-05T07:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate growth as column with categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2267359#M55028</link>
      <description>&lt;P&gt;thank you &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;amitchandak it's work perfectly&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;but i can't transform the tabel to qurey (&amp;nbsp; to unpivot the column)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;is there any way to unpivot the column&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Super-User"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class=""&gt;thank you for responding&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-calculate-growth-as-column-with-categories/m-p/2267359#M55028</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-01-05T12:45:27Z</dc:date>
    </item>
  </channel>
</rss>

