<?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: Pulling a value from a lower hierarchy in a matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3991453#M154845</link>
    <description>&lt;P&gt;Could you show a screenshot of what the result looks like now?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 15:00:17 GMT</pubDate>
    <dc:creator>ExcelMonke</dc:creator>
    <dc:date>2024-06-13T15:00:17Z</dc:date>
    <item>
      <title>Pulling a value from a lower hierarchy in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3989540#M154842</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix with 4 levels. There are possible values on each one of those hierarchy levels. I need to display a flag on the top most hierarchy level (level 1) if there is a value that exists on any of the four levels. Does anyone have any tips on how to accomplish that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3989540#M154842</guid>
      <dc:creator>akoren2</dc:creator>
      <dc:date>2024-06-12T20:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a value from a lower hierarchy in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3989568#M154843</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You can consider using a mix of Variables and IF statements. Consider:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEASURE =
VAR _Level1 =
    IF ( ISBLANK ( 'Table'[Level1] ), 0, 1 ) //You can tweak the "ISBLANK" statement depending on how you are determining value for the level
VAR _Level2 =
    IF ( ISBLANK ( 'Table'[Level2] ), 0, 1 )
VAR _Level3 =
    IF ( ISBLANK ( 'Table'[Level3] ), 0, 1 )
VAR _Level4 =
    IF ( ISBLANK ( 'Table'[Level4] ), 0, 1 )
RETURN
    IF ( ( _Level1 + _Level2 + _Level3 + _Level4 ) &amp;gt; 0, "Flag", "" )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:52:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3989568#M154843</guid>
      <dc:creator>ExcelMonke</dc:creator>
      <dc:date>2024-06-12T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a value from a lower hierarchy in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3989584#M154844</link>
      <description>&lt;P&gt;Thanks for your reply!&amp;nbsp;&lt;BR /&gt;I have tried something similar, but here it is with you structure. It still only displays the flag when the measure exists on that specific level&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Commentary Flag = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; _Level1 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/S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&lt;/SPAN&gt;&lt;SPAN&gt;"Flag"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:59:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3989584#M154844</guid>
      <dc:creator>akoren2</dc:creator>
      <dc:date>2024-06-12T20:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a value from a lower hierarchy in a matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3991453#M154845</link>
      <description>&lt;P&gt;Could you show a screenshot of what the result looks like now?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 15:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pulling-a-value-from-a-lower-hierarchy-in-a-matrix/m-p/3991453#M154845</guid>
      <dc:creator>ExcelMonke</dc:creator>
      <dc:date>2024-06-13T15:00:17Z</dc:date>
    </item>
  </channel>
</rss>

