<?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 - Switch Case in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3305799#M1105259</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="574181" data-lia-user-login="MChakri" class="lia-mention lia-mention-user"&gt;MChakri&lt;/a&gt;, This is the answer to the above asked question:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CF = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('New Table'[Report Column]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Other: Audit Accruals/Credits Margin"&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;([JANNEWF]&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Red"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Here are my observations/suggestions:&lt;BR /&gt;1. Use hierarchies instead of calculated column Categorn intern with some additional spaces&lt;/DIV&gt;&lt;DIV&gt;2. You derived field i.e. JANNEWF , FEBNEWF should be in Whole Number format instead of text to make this code work.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 Jun 2023 08:20:48 GMT</pubDate>
    <dc:creator>Akshaan</dc:creator>
    <dc:date>2023-06-28T08:20:48Z</dc:date>
    <item>
      <title>Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3288401#M1100669</link>
      <description>&lt;P&gt;Hello Pals,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a peculiar case with Switch statement as I am unable to apply conditional formatting for a single line item. Lets say, I have 5 line items and calculated against months like JAN, FEB, ...DEC, Q1, Q2, Q3, Q4, YTD etc..,I have a Grand total as 5th line item and that line item need to have a conditional formatting for "-" values. (Identified with a different color instead of default).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;We would like to see the conditional formatting for Total other Margin and Net Margin should be with different color in Power BI.&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;Switch statement looks like the above&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 18:22:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3288401#M1100669</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-16T18:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3288613#M1100699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="574181" data-lia-user-login="MChakri" class="lia-mention lia-mention-user"&gt;MChakri&lt;/a&gt;, you can achieve this by using a similar dax measure only for a selected dimension ( in your case line 5 item).&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;if it doesn't works for you, please share your .pbix file.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 22:39:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3288613#M1100699</guid>
      <dc:creator>Akshaan</dc:creator>
      <dc:date>2023-06-16T22:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3289923#M1101105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="479163" data-lia-user-login="Akshaan" class="lia-mention lia-mention-user"&gt;Akshaan&lt;/a&gt;, Is this possible for only negative values...This should work if we have any negative values in the "Net Margin" column alone. Apologies for my late response..&amp;nbsp;Wanted to share the .pbix file but I don't see an option to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 02:58:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3289923#M1101105</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-19T02:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3290000#M1101127</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="574181" data-lia-user-login="MChakri" class="lia-mention lia-mention-user"&gt;MChakri&lt;/a&gt;&amp;nbsp;you can make this small change to get the desired result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please accept this as solution if it works for you to help others.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 04:11:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3290000#M1101127</guid>
      <dc:creator>Akshaan</dc:creator>
      <dc:date>2023-06-19T04:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3290077#M1101145</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="479163" data-lia-user-login="Akshaan" class="lia-mention lia-mention-user"&gt;Akshaan&lt;/a&gt;&amp;nbsp;, see this is not working for me. One thing is that this is a derived field !! Pls correct me!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 05:16:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3290077#M1101145</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-19T05:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3290130#M1101165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="574181" data-lia-user-login="MChakri" class="lia-mention lia-mention-user"&gt;MChakri&lt;/a&gt;&amp;nbsp;, it seems you are not passing the condition for CategoryIntern column in the above measure (line 5 item). Also, can you please explain why are you using 2 different measures in here?&lt;BR /&gt;1.&amp;nbsp; NETMARGIN- YTD&lt;/P&gt;&lt;P&gt;2. OTHER COGS Test&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can share you .pbix frm here.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 05:58:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3290130#M1101165</guid>
      <dc:creator>Akshaan</dc:creator>
      <dc:date>2023-06-19T05:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3293774#M1102164</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="479163" data-lia-user-login="Akshaan" class="lia-mention lia-mention-user"&gt;Akshaan&lt;/a&gt;&amp;nbsp;Unable to send .pbix file as it is only allows .jpeg files only. I tried again but seems no luck. do you have any other mediums to connect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MChakri&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 17:36:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3293774#M1102164</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-20T17:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3293811#M1102175</link>
      <description>&lt;P&gt;&lt;A title="Test File" href="https://drive.google.com/file/d/1qnaQdb_t7zq6rqZLF_T0ogQGv7VuE7Km/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1qnaQdb_t7zq6rqZLF_T0ogQGv7VuE7Km/view?usp=sharing&lt;/A&gt;&amp;nbsp; Here you go. Attached with .pbix file.&amp;nbsp; Let me know if this is doeable. Thanks a ton!!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 17:58:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3293811#M1102175</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-20T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3301689#M1104208</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="479163" data-lia-user-login="Akshaan" class="lia-mention lia-mention-user"&gt;Akshaan&lt;/a&gt;&amp;nbsp;Any luck on the file sent to you? We can close the discussion if you are ok to help me on last step!! Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 06:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3301689#M1104208</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-26T06:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3305687#M1105238</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="479163" data-lia-user-login="Akshaan" class="lia-mention lia-mention-user"&gt;Akshaan&lt;/a&gt;&amp;nbsp;Any help is appreciated!! TIA.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 07:18:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3305687#M1105238</guid>
      <dc:creator>MChakri</dc:creator>
      <dc:date>2023-06-28T07:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting - Switch Case</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3305799#M1105259</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="574181" data-lia-user-login="MChakri" class="lia-mention lia-mention-user"&gt;MChakri&lt;/a&gt;, This is the answer to the above asked question:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CF = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('New Table'[Report Column]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Other: Audit Accruals/Credits Margin"&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;([JANNEWF]&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Red"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Here are my observations/suggestions:&lt;BR /&gt;1. Use hierarchies instead of calculated column Categorn intern with some additional spaces&lt;/DIV&gt;&lt;DIV&gt;2. You derived field i.e. JANNEWF , FEBNEWF should be in Whole Number format instead of text to make this code work.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jun 2023 08:20:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Conditional-Formatting-Switch-Case/m-p/3305799#M1105259</guid>
      <dc:creator>Akshaan</dc:creator>
      <dc:date>2023-06-28T08:20:48Z</dc:date>
    </item>
  </channel>
</rss>

