<?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: Conditional formatting via isinscope() in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2896937#M94225</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There was nothing wrong with the formula. I was looking at a way where I can filter based on this formula.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So when 1 hierachy is matched, I want to see all the details from level 1 to level 3 of a certain country for example, NL.&lt;BR /&gt;&lt;BR /&gt;So in this example hierachy level 2 is matched for the countries NL and DE. Therefore I want to see all the details on that level:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 07:59:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-10T07:59:42Z</dc:date>
    <item>
      <title>Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2891970#M93902</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;Via a measure and the function isinscope() I assigned conditinal formatting on 3 different hierarchical levels (matrix rows). This working just fine, but the business wants to have a button where they can filter based on the numbers which are red.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The problem is now that when the third&amp;nbsp;hierarchical level is red a filter on the color code does not return all 3&amp;nbsp;hierarchical levels. Is there a function where you can overwrite these levels? So you can say that when isinscope(Level 2) level 1 is returend, but also level 3.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Measure conditonal formatting:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN&gt;(hierarchical &lt;/SPAN&gt;&lt;SPAN&gt;[level 3]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN&gt;(hierarchical [level 2]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;amp;&amp;amp;(&lt;/SPAN&gt;&lt;SPAN&gt;[Difference %]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;varLevel2%&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"#ff2000"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN&gt;(hierarchical [level 1]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;amp;&amp;amp;([Difference %])&amp;gt;varLevel1%),"#ff2000"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;The sample PBIX is on this wetransfer link:&amp;nbsp;&lt;A href="https://we.tl/t-9TvD36eFPP" target="_blank"&gt;https://we.tl/t-9TvD36eFPP&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Nov 2022 09:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2891970#M93902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-09T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2893224#M93983</link>
      <description>&lt;P&gt;Other functions which can evaluate each hierachie and can create the right colors are also welcome.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:23:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2893224#M93983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-08T18:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2894396#M94046</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I cannot reproduce the issue. Could you please provide some sample data without privacy information and desired output with more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 07:03:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2894396#M94046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-09T07:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2894932#M94065</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I posted a PBIX file on wetransfer:&amp;nbsp;&lt;A href="https://we.tl/t-9TvD36eFPP" target="_blank" rel="noopener"&gt;https://we.tl/t-9TvD36eFPP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So without the filter the matrix looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After the filtering/button it should look like this: so based if a inscope() function matches, every hierachal level should be visible:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In this example based on the second hierachy the numbers are turned red.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 10:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2894932#M94065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-09T10:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2896507#M94201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There is nothing error with the formula.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE conditonalformatting =
    VAR varLevel2 = ( 1 / 100 )
    VAR varLevel1 = ( 35 / 1000 )
    RETURN
        IF (
            ISINSCOPE ( 'Sample'[Level 3] ),
            BLANK (),
            IF (
                ISINSCOPE ( 'Sample'[Level 2] )
                    &amp;amp;&amp;amp; ( [Difference%] ) &amp;gt; varLevel2,
                "#ff2000",
                IF (
                    ISINSCOPE ( 'Sample'[Level 1] )
                        &amp;amp;&amp;amp; ( [Difference%] ) &amp;gt; varLevel1,
                    "#ff2000"
                )
            )
        )
&lt;/LI-CODE&gt;
&lt;P&gt;In your sample data, the varlevel11 value is 0.035(3.5%).&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;There is no data bigger than 3.5%.&lt;/P&gt;
&lt;P&gt;I have change 35 to 25.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 02:44:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2896507#M94201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-10T02:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2896937#M94225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There was nothing wrong with the formula. I was looking at a way where I can filter based on this formula.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So when 1 hierachy is matched, I want to see all the details from level 1 to level 3 of a certain country for example, NL.&lt;BR /&gt;&lt;BR /&gt;So in this example hierachy level 2 is matched for the countries NL and DE. Therefore I want to see all the details on that level:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 07:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2896937#M94225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-10T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2897249#M94253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please create 2 tables.&lt;/P&gt;
&lt;P&gt;And then create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =
VAR a =
    IF (
        ISINSCOPE ( 'Sample'[Level 2] )
            &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Sample'[Level 3] ) )
                &amp;amp;&amp;amp; SELECTEDVALUE ( 'Sample'[Level 2] ) IN VALUES ( level2[Level 2] ),
        1,
        0
    )
VAR b =
    IF (
        ISINSCOPE ( 'Sample'[Level 3] )
            &amp;amp;&amp;amp; SELECTEDVALUE ( 'Sample'[Level 3] ) IN VALUES ( level3[Level 3] ),
        1,
        0
    )
RETURN
    SWITCH (
        TRUE (),
        ISFILTERED ( level2[Level 2] ) &amp;amp;&amp;amp; NOT ( ISFILTERED ( level3[Level 3] ) ), a,
        ISFILTERED ( level3[Level 3] ) &amp;amp;&amp;amp; NOT ( ISFILTERED ( level2[Level 2] ) ), b,
        ISFILTERED ( level2[Level 2] ) || ISFILTERED ( level3[Level 3] ), a + b
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 10:01:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2897249#M94253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-10T10:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2900258#M94436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This already helps and I think we are going the right way, but we are not there yet.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the PBIX you created two different slicers which control the matrix. But I want to see the next thing:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want 1 slicer for all three hierachies. So when 1 hierachy is colored red (based on the conditional formatting measure) via the filter the whole 3 levels are shown.&lt;BR /&gt;&lt;BR /&gt;So without the slicer/filter it shows this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The conditional formatting is right, these numbers should be show in red.&amp;nbsp;&lt;BR /&gt;After the slicer/filter I want to see everything of the countries (level 1) which are red or have in the lower levels/hierachy a red number. This means that the slicer/filter should exclude every country which have only black (normal) numbers. This should all happen based on the red numbers, which are based on a measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 13:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2900258#M94436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-11T13:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2914940#M95405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Do you have any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 10:57:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2914940#M95405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-18T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting via isinscope()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2917957#M95600</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;What is your desired output?&amp;nbsp; I'm a little confused. When we select the level 1, we can see level 2 and level 3. But when we choose level 3,&amp;nbsp; Its upper level cannot be hidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you can vote here:&amp;nbsp;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=cde071eb-3a3c-410a-baa6-c2827c240229" target="_blank"&gt;Microsoft Idea (powerbi.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 07:50:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-formatting-via-isinscope/m-p/2917957#M95600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T07:50:06Z</dc:date>
    </item>
  </channel>
</rss>

