<?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 Measure based on drill down level in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-drill-down-level/m-p/3251860#M157225</link>
    <description>&lt;P&gt;Hi community!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a measure of the total value of importations and put it in a column chart by date.&amp;nbsp;I can drill down this chart to show the measure by year, quarter or month. Until this point is ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the same chart I added a red line to show Month over Month variation measure.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue consists in that: I would like this measure changes dinamically when I drill down or drill up the hierarchy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: if I drill up the chart to Years level, the lyne would change to Year over Year variation measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to create a measure to identify the level of drill down using &lt;SPAN&gt;&lt;EM&gt;ISINSCOPE&lt;/EM&gt; DAX as follow:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;= ISINSCOPE(_dCalendar[Date].[Year])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;But even if I drill up the chart to Year level, the DAX function always returns false.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone knows what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 19:46:10 GMT</pubDate>
    <dc:creator>nicolas_nsto</dc:creator>
    <dc:date>2023-05-24T19:46:10Z</dc:date>
    <item>
      <title>Measure based on drill down level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-drill-down-level/m-p/3251860#M157225</link>
      <description>&lt;P&gt;Hi community!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a measure of the total value of importations and put it in a column chart by date.&amp;nbsp;I can drill down this chart to show the measure by year, quarter or month. Until this point is ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the same chart I added a red line to show Month over Month variation measure.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue consists in that: I would like this measure changes dinamically when I drill down or drill up the hierarchy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: if I drill up the chart to Years level, the lyne would change to Year over Year variation measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to create a measure to identify the level of drill down using &lt;SPAN&gt;&lt;EM&gt;ISINSCOPE&lt;/EM&gt; DAX as follow:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;= ISINSCOPE(_dCalendar[Date].[Year])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;But even if I drill up the chart to Year level, the DAX function always returns false.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone knows what I am doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:46:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-drill-down-level/m-p/3251860#M157225</guid>
      <dc:creator>nicolas_nsto</dc:creator>
      <dc:date>2023-05-24T19:46:10Z</dc:date>
    </item>
  </channel>
</rss>

