<?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: Calculate difference in Qty according to date and hierarchy in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350078#M24316</link>
    <description>&lt;P&gt;Hi! Thank you for your quick reply! I tried recreating using what you suggested (Working67 file with Table19).. Unfortunately, that is not working in my case as it's getting the Max of the Code value in a hierarchy and the totals is also changing.. I don't know if I putting it the right way or not..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added the file in Dropbox. Link -&amp;nbsp;&lt;A href="https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ChangeOverWeeks is what I have currently and Table19 is what I recreated using your example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Sep 2020 22:18:00 GMT</pubDate>
    <dc:creator>Zuzu</dc:creator>
    <dc:date>2020-09-06T22:18:00Z</dc:date>
    <item>
      <title>Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350024#M24313</link>
      <description>&lt;P&gt;Hello! I am new to Power BI and trying to wrap my head around different visualizations types and calculations for those. I am right now stuck with Hierarchy level calulations in a Matrix Viz.. If anyone can help me, that'd be great!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a SQL table with Projects, Group, Unit, Code, Date, Quantity fields. I created a Hierarchy Project -&amp;gt; Group -&amp;gt; Unit -&amp;gt; Code. That is on my rows, Date is on Columns(I am right now only showing 2 weeks as columns- Prev Week, Current Week) and Quantity in Values. Everything works okay. The totals is shown correctly in each Hierarchy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now the request from Client is that they only want to see the "Type" where there is difference of Quantity values in the current and prev weeks. I am just flunking at it.. I don't know if I am going at it the right way or not. I tried to use ISINSCOPE() but could not get it right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a sample of the dataset in excel to show. &lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thank you.&amp;nbsp; &amp;nbsp; &amp;nbsp;I am still trying to figuure out how to add the .pbix file..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT : This is the link to the sample pbix :&amp;nbsp;&lt;A href="https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 02:08:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350024#M24313</guid>
      <dc:creator>Zuzu</dc:creator>
      <dc:date>2020-09-07T02:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350034#M24314</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257263" data-lia-user-login="Zuzu" class="lia-mention lia-mention-user"&gt;Zuzu&lt;/a&gt;&amp;nbsp;- Man, I just wrote a difference between two date columns in a matrix like just recently, let me see if I can find it. But, you will most definitely need MM3TR&amp;amp;R -&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-Roll/m-p/411443#M150" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-Roll/m-p/411443#M150&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 21:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350034#M24314</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-06T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350035#M24315</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257263" data-lia-user-login="Zuzu" class="lia-mention lia-mention-user"&gt;Zuzu&lt;/a&gt;&amp;nbsp;- OK, found my difference between columns in a matrix formula. See Table (19) and Page 19 of attached PBIX.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, you will probably not be able to attach a PBIX, you will need to share the PBIX via OneDrive or Box and share a link to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 21:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350035#M24315</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-06T21:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350078#M24316</link>
      <description>&lt;P&gt;Hi! Thank you for your quick reply! I tried recreating using what you suggested (Working67 file with Table19).. Unfortunately, that is not working in my case as it's getting the Max of the Code value in a hierarchy and the totals is also changing.. I don't know if I putting it the right way or not..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added the file in Dropbox. Link -&amp;nbsp;&lt;A href="https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ChangeOverWeeks is what I have currently and Table19 is what I recreated using your example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 22:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350078#M24316</guid>
      <dc:creator>Zuzu</dc:creator>
      <dc:date>2020-09-06T22:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350171#M24323</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257263" data-lia-user-login="Zuzu" class="lia-mention lia-mention-user"&gt;Zuzu&lt;/a&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. You can load to onedrive or dropbox and share. &lt;/P&gt;
&lt;P&gt;In between refer one of the two can offer any help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/" target="_blank"&gt;https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 00:53:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350171#M24323</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-07T00:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350348#M24334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; &amp;nbsp;I created a sample pbix with dummy data but it has the same structure as my dataset. Let me know if you need it in a more detailed manner. Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link :&amp;nbsp;&lt;A href="https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/xdq2bwsxabx50rk/ChangeOverWeeks.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 02:07:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350348#M24334</guid>
      <dc:creator>Zuzu</dc:creator>
      <dc:date>2020-09-07T02:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350476#M24341</link>
      <description>&lt;P&gt;Also&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; I went through the blogs you shared. The using ISFILTERED gives me the same values as that I have currently. The only thing I'm looking for is to eliminate(not show) the rows where the Hierarchy level(1,2,6,7 etc...) are the same for both the dates&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 03:10:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1350476#M24341</guid>
      <dc:creator>Zuzu</dc:creator>
      <dc:date>2020-09-07T03:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate difference in Qty according to date and hierarchy</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1354077#M24423</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="257263" data-lia-user-login="Zuzu" class="lia-mention lia-mention-user"&gt;Zuzu&lt;/a&gt;&amp;nbsp;write a measure,&amp;nbsp; when prensentation&amp;nbsp;&amp;nbsp;is in the Unit level and the result for the week to compare is the same, say, set a fixed amount, like 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;and use the conditional formating, when the measure is 1, the font is white, then you could realize what you want&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-difference-in-Qty-according-to-date-and-hierarchy/m-p/1354077#M24423</guid>
      <dc:creator>Crystal_YW</dc:creator>
      <dc:date>2020-09-08T08:17:49Z</dc:date>
    </item>
  </channel>
</rss>

