<?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: Icon Conditional Formatting and Calculation Groups using Field Values in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3834517#M1237992</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718483" data-lia-user-login="Ashes" class="lia-mention lia-mention-user"&gt;Ashes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for missreading your request, glad that you were abble to figure out what was going on.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 17:13:04 GMT</pubDate>
    <dc:creator>MFelix</dc:creator>
    <dc:date>2024-04-12T17:13:04Z</dc:date>
    <item>
      <title>Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3812254#M1233057</link>
      <description>&lt;P&gt;I've just come across the icon conditional formatting and calculation groups. When I was trying to combine them to reduce the time needed in doing the conditional formatting on each columns I thought I'd give it a go to apply it through calculation groups.&lt;BR /&gt;&lt;BR /&gt;So first I tested out creating a measure for doing the CF to test doing it without calculation groups and it worked fine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;FieldCF =&lt;/SPAN&gt; &lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;[Field to format]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;955000000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CircleHigh"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;[Field to format] = &lt;/SPAN&gt;&lt;SPAN&gt;955000001&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CircleMedium"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;[Field to format] = &lt;/SPAN&gt;&lt;SPAN&gt;955000002&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CircleLow"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;"4CircleLow"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This worked like a charm. So then I went and created a dummy record of the field I wanted adjusted for a calculated group to tweak and tested the resultant output in a table to make sure it was outputting the correct values for the Conditional Formatting. So far was looking great. Calculated Group looked like the following:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;FieldCFs =&lt;/SPAN&gt; &lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_CF&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;SELECTEDMEASURE&lt;/SPAN&gt;&lt;SPAN&gt;() = &lt;/SPAN&gt;&lt;SPAN&gt;955000000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CircleHigh"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;SELECTEDMEASURE&lt;/SPAN&gt;&lt;SPAN&gt;() = &lt;/SPAN&gt;&lt;SPAN&gt;955000001&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CircleMedium"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;SELECTEDMEASURE&lt;/SPAN&gt;&lt;SPAN&gt;() = &lt;/SPAN&gt;&lt;SPAN&gt;955000002&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"CircleLow"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;"4CircleLow"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDMEASURENAME&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;"Field*CF"&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;_CF&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDMEASURE&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I went to apply the icon conditional formatting using the dummy measure tweaked by the calculated group, thinking I had everything solved but it won't allow me to apply the dummy measure that the calculated group is tweaking as a "What field should we base this on" when using "Field Value".&lt;BR /&gt;&lt;BR /&gt;Any idea on why this is? Is it an order of operations? Like is conditional formatting applied before a calculated group is applied and so it's recognising that the values that the calculated group would modify the column to be? It doesn't give any errors, it just doesn't allow it's selection so it's kind of difficult to troubleshoot.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance to anyone that has an answer to this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;EDIT: Just thought I should note because I didn't make it clear. I am trying to apply the conditional formatting to a measure. So it's an explicit aggregration for both the CF measure and the measure it's being applied to. Just to rule out the implicit complications you can get when using Calculated Groups.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Apr 2024 22:25:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3812254#M1233057</guid>
      <dc:creator>Ashes</dc:creator>
      <dc:date>2024-04-07T22:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3814021#M1233515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718483" data-lia-user-login="Ashes" class="lia-mention lia-mention-user"&gt;Ashes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you mix calculation groups with condittional formatting everything works differently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the videos below for explanation on what is happening and how to solve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=Y3d5CrVbbis&amp;amp;list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I&amp;amp;index=4" target="_blank"&gt;https://www.youtube.com/watch?v=Y3d5CrVbbis&amp;amp;list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I&amp;amp;index=4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=YU5nddHQ-oo&amp;amp;list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I&amp;amp;index=8" target="_blank"&gt;https://www.youtube.com/watch?v=YU5nddHQ-oo&amp;amp;list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I&amp;amp;index=8&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 15:36:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3814021#M1233515</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2024-04-05T15:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3817156#M1234312</link>
      <description>&lt;P&gt;Thanks for the vids. Unfortunately they didn't seem to address the issue I am experiencing, where I am unable to select a measure tweaked by the Calculated Group for a Field Value option for Icon Conditional Formatting, but is selectable as a Rule input to the Icon Conditional Formatting (just can't be used there because it doesn't contain values).&lt;BR /&gt;&lt;BR /&gt;Effort to provide them appreciated though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 21:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3817156#M1234312</guid>
      <dc:creator>Ashes</dc:creator>
      <dc:date>2024-04-07T21:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3820293#M1235048</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718483" data-lia-user-login="Ashes" class="lia-mention lia-mention-user"&gt;Ashes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.&lt;BR /&gt;&lt;BR /&gt;If the information is sensitive please share it trough private message.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 16:07:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3820293#M1235048</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2024-04-08T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3821123#M1235339</link>
      <description>&lt;P&gt;It seems I can't share files from where I am employed. So I'll create an example of the scenario with some mockup data under my personal account later on.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 23:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3821123#M1235339</guid>
      <dc:creator>Ashes</dc:creator>
      <dc:date>2024-04-08T23:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3828463#M1236834</link>
      <description>&lt;P&gt;I'm sure I replied to this from this account. But I'll try again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-1ohuQLE1ml" target="_self"&gt;Example Power BI File&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I had a full explanation of exactly the steps but I'll just summarize this time due to time. There are two Icon Conditional Format Source Measures created. One is modified by the Calculation Group which is KPI_CF_CG, it can't seem to be used a source for a Field Value while the other more specific measure doing the switch itself works just fine. Behaviour seems to be the same if it is a natural column or a display measure that is it is applied to.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 21:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3828463#M1236834</guid>
      <dc:creator>Aklys</dc:creator>
      <dc:date>2024-04-10T21:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3831332#M1237315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="694310" data-lia-user-login="Aklys" class="lia-mention lia-mention-user"&gt;Aklys&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that you need to have this formatting to be done automatticaly based on the measure that you have so you don't do any condittional formatting in the values, since the condittional formatting is done using a different process where you can select each of the values, having this on the calculation item does not avoid you to do it manually for each measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case and since your are doing just the normal icons I would do the KPI's calculation using the following way:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR _CF =
    SWITCH (
        TRUE (),
        SELECTEDMEASURE () = 9000, UNICHAR(128994),-- "CircleHigh",
        SELECTEDMEASURE () = 9001, UNICHAR ( 128993 ),-- "CircleMedium",
        SELECTEDMEASURE () = 9002, UNICHAR ( 128308 ),-- "CircleLow",
        UNICHAR ( 9899 )
    )
RETURN
    IF (
        CONTAINSSTRING ( SELECTEDMEASURENAME (), "KPI*CF*CG" ),
       
         SELECTEDMEASURE() &amp;amp; " " &amp;amp;_CF,
        SELECTEDMEASURE ()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will add the KPI on the measure it self.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:23:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3831332#M1237315</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2024-04-11T15:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3831994#M1237516</link>
      <description>&lt;P&gt;This unfortunately doesn't resolve the issue I'm mentioning. I get you can use unichar instead but that solution comes with it's own problems. Such as it creates inconsistency of application throughout reports that use conditional formatting already for other things. Also the UNICHAR images are too different to align with other uses of the icon conditional formatting.&lt;BR /&gt;&lt;BR /&gt;I wasn't looking for an alternative solution to applying the images, I was more trying to understand why that conditional formatting method doesn't work, this way I will know the limitations better of Calculation Groups. So I was wondering if any one knows if it's an order of operations or something else causing the experience.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 21:49:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3831994#M1237516</guid>
      <dc:creator>Ashes</dc:creator>
      <dc:date>2024-04-11T21:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3832031#M1237521</link>
      <description>&lt;P&gt;Ok I think I have discovered the root cause.&lt;BR /&gt;&lt;BR /&gt;Because the underlying measure is originally of a type that is Integer, it is not adjusting to the type String that the Calculation Group is adjusting it to. And a field value source requires a measure to have a type of String.&lt;BR /&gt;&lt;BR /&gt;So if I convert the measure to output a string initially and then do the switch on that through the Calculation Group it is now selectable.&lt;BR /&gt;&lt;BR /&gt;So the problem is that the measure maintains it's original Data Type even if the Calculation Group is changing the output.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 22:30:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3832031#M1237521</guid>
      <dc:creator>Ashes</dc:creator>
      <dc:date>2024-04-11T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3834517#M1237992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718483" data-lia-user-login="Ashes" class="lia-mention lia-mention-user"&gt;Ashes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for missreading your request, glad that you were abble to figure out what was going on.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3834517#M1237992</guid>
      <dc:creator>MFelix</dc:creator>
      <dc:date>2024-04-12T17:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Icon Conditional Formatting and Calculation Groups using Field Values</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3834703#M1238062</link>
      <description>&lt;P&gt;That's totally fine. I'm greatful for trying to assist me.&lt;BR /&gt;&lt;BR /&gt;I'm pretty sure your attempt at helping me is what assisted me in figuring it out. Sounding it out with someone always helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 19:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Icon-Conditional-Formatting-and-Calculation-Groups-using-Field/m-p/3834703#M1238062</guid>
      <dc:creator>Aklys</dc:creator>
      <dc:date>2024-04-12T19:25:36Z</dc:date>
    </item>
  </channel>
</rss>

