<?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: How to use the CASE statement in Power BI? in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411043#M5505</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;My apologizes if my question was not clear and for not posting the sample data.&lt;/P&gt;&lt;P&gt;Here is the sample data.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here&amp;nbsp;cCount is "Current Year",&lt;BR /&gt;pCount is "Prior Year",&lt;BR /&gt;p1Count is "Current Year-2",&lt;BR /&gt;p2Count is "CurrentYear-3"&lt;/P&gt;&lt;P&gt;ThreeYrAvg is "3 Year Avg"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the CASE statement I want to add another calculated column and a measure. Please let me know if it is more clear with the sample data. Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 20:46:18 GMT</pubDate>
    <dc:creator>BBIUser</dc:creator>
    <dc:date>2018-05-04T20:46:18Z</dc:date>
    <item>
      <title>How to use the CASE statement in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/410864#M5500</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; How do I convert the below CASE statement to DAX in Power BI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;case when cCount &amp;gt; 0 and ThreeYrAvg &amp;gt; 0
then
case
when cCount - ThreeYrAvg &amp;gt;= 5
and round( ( ( cCount * 1.00 - ThreeYrAvg ) / ThreeYrAvg) * 100, 2 ) &amp;gt;= 10.00
then 'Increase'
when cCount - ThreeYrAvg &amp;lt;= -5
and round( ( ( cCount * 1.00 - ThreeYrAvg ) / ThreeYrAvg ) * 100, 2 ) &amp;lt;= -10.00
then 'Decrease'
else 'None' end
else 'None'
end "Notable Change?",&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 1 = cCount&lt;/P&gt;&lt;P&gt;Column 2 = ThreeYrAvg from Table A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a calculated 'Column' named = "Notable Change?" which will have Increase, Decrease and None values in the new column (from the CASE statement).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; and then a calculated 'Measure'. Calculated 'Measure' should show just the record count of "Increase and Decrease" which I then show it using a 'Card' visualization.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do I need to use 'Switch' DAX expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your inputs!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:27:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/410864#M5500</guid>
      <dc:creator>BBIUser</dc:creator>
      <dc:date>2018-05-04T15:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the CASE statement in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411007#M5501</link>
      <description>&lt;P&gt;Yes, SWITCH funtion is your equivalent or nested IF statements. Give me some sample data to play with and can be more specific.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 19:23:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411007#M5501</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-05-04T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the CASE statement in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411043#M5505</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;My apologizes if my question was not clear and for not posting the sample data.&lt;/P&gt;&lt;P&gt;Here is the sample data.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here&amp;nbsp;cCount is "Current Year",&lt;BR /&gt;pCount is "Prior Year",&lt;BR /&gt;p1Count is "Current Year-2",&lt;BR /&gt;p2Count is "CurrentYear-3"&lt;/P&gt;&lt;P&gt;ThreeYrAvg is "3 Year Avg"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the CASE statement I want to add another calculated column and a measure. Please let me know if it is more clear with the sample data. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 20:46:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411043#M5505</guid>
      <dc:creator>BBIUser</dc:creator>
      <dc:date>2018-05-04T20:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the CASE statement in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411182#M5507</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="51313" data-lia-user-login="BBIUser" class="lia-mention lia-mention-user"&gt;BBIUser&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I've created a sample data and used custom column to use -IF-ELSE-IF statements to get the result you need as shown below in images.&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let me know if any doubt persists.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Piyush&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 07:22:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/411182#M5507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-05T07:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the CASE statement in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/431651#M5964</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;Anonymous&lt;/a&gt;! It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am new to Power BI and only trying out POCs, it is good to know that there is an option 'Custom Column'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But can I know in what scenarios the 'custom column' and 'calculated column' should be&amp;nbsp;used?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 17:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/431651#M5964</guid>
      <dc:creator>BBIUser</dc:creator>
      <dc:date>2018-06-04T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the CASE statement in Power BI?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/2427503#M23539</link>
      <description>&lt;P&gt;hi i want to do a case statement in powerbi that is coming from a culculated measure in Power bi , how do i do this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Numbers% = &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query1[NuberPas]&lt;/SPAN&gt;&lt;SPAN&gt;)/&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query1[AllAssessed]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;gt; this is the calculated measure but i want to do a calculated measure with this calculation&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;New Calculated meature from top 1&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Case when Numbers% = 100 then 1 else 0 end as NumberPositive&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanking you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 17:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-use-the-CASE-statement-in-Power-BI/m-p/2427503#M23539</guid>
      <dc:creator>EllaGen</dc:creator>
      <dc:date>2022-03-30T17:03:51Z</dc:date>
    </item>
  </channel>
</rss>

