<?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: Drill down not working for quater in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906926#M94873</link>
    <description>&lt;P&gt;It did not work for me, attached the screenshot. Please have look&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 15:09:23 GMT</pubDate>
    <dc:creator>Bikramaditya</dc:creator>
    <dc:date>2022-11-15T15:09:23Z</dc:date>
    <item>
      <title>Drill down not working for quater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906203#M94825</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have calaculated lost customeres revenue YOY, but when i drill down to quater it is not matching to the year as below image&lt;/P&gt;&lt;P&gt;here is the dax funtion i am using for Lost customer&amp;nbsp; YOY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lost Rev YOY = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;lastYear&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&g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; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[CUSTOMER_ID]&lt;/SPAN&gt; &lt;SPAN&gt;IN&lt;/SPAN&gt; &lt;SPAN&gt;CustomersThisYear&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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>Tue, 15 Nov 2022 10:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906203#M94825</guid>
      <dc:creator>Bikramaditya</dc:creator>
      <dc:date>2022-11-15T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down not working for quater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906648#M94846</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// First of all, you should never use
// the auto-generated date tables. Never.
// There are many good reasons behind this
// and I don't have time to explain here.
// Please, just don't for your own safety
// and sanity.
//
// Once you've got the proper tables in place,
// use this code:

Lost Rev YOY =
    CALCULATE(
        // This SUM should be made into a basic
        // measure on its own, like [Total Revenue].
        SUM( Sales[REVENUE] ),
        // 'Calendar' should be marked as Date Table
        // in the model.
        DATEADD( 'Calendar'[Date], -1, YEAR),
        EXCEPT(
            // By the way, if you want to stay sane
            // please create a proper star schema
            // as the model and follow Best Practices
            // of data modeling in PBI. Otherwise,
            // you're exposing yourself to issues
            // you won't even be able to spot. So,
            // please create a Customer dimension and
            // use it instead of the field from the
            // fact table as below.
            ALL( Sales[Customer_id] ),
            VALUES( Sales[CUSTOMER_ID] )
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;You have to be extremely careful with what you're doing right now. The model is most likely not what it should be and therefore you might get funny results by slicing on fields that belong to the fact table. Honestly, slicing by a fact table's field should never be done in a well designed semantic solution. Please turn your model into a proper one to avoid issues.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:29:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906648#M94846</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-15T13:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down not working for quater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906670#M94850</link>
      <description>&lt;P&gt;Noted,&lt;BR /&gt;Thank you for your response&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906670#M94850</guid>
      <dc:creator>Bikramaditya</dc:creator>
      <dc:date>2022-11-15T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down not working for quater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906674#M94852</link>
      <description>&lt;P&gt;If the code is OK, please mark the answer as The Solution (there's a button for it). It'll help others as well. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:42:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906674#M94852</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-15T13:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down not working for quater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906926#M94873</link>
      <description>&lt;P&gt;It did not work for me, attached the screenshot. Please have look&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2906926#M94873</guid>
      <dc:creator>Bikramaditya</dc:creator>
      <dc:date>2022-11-15T15:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down not working for quater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2907276#M94900</link>
      <description>&lt;P&gt;Well, if you don't have the model as the code requires... then it'll not work. That's obvious. Also, it does matter which fields from which tables you drop onto the canvas. DAX does not work regardless of models. It does work together with models. That's why it's important that you inform potential helpers about what the model looks like...&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:17:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Drill-down-not-working-for-quater/m-p/2907276#M94900</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-15T17:17:27Z</dc:date>
    </item>
  </channel>
</rss>

