<?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 DAX Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/4267861#M169215</link>
    <description>&lt;P&gt;CFQ1 =&lt;BR /&gt;//Better than baseline AND target&lt;BR /&gt;if(search("N/A",max('_FY25 CFG Performance OG'[as of 9/30/23]),1,0) &amp;lt;&amp;gt; 0 ,0,&lt;BR /&gt;IF(&lt;BR /&gt;max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= max('_FY25 CFG Performance OG'[Baseline] )&lt;BR /&gt;&amp;amp;&amp;amp; max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= max('_FY25 CFG Performance OG'[FY 24Target]),&lt;BR /&gt;3,&lt;BR /&gt;//Better than baseline BUT NOT target&lt;BR /&gt;IF(&lt;BR /&gt;max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= max('_FY25 CFG Performance OG'[Baseline])&lt;BR /&gt;&amp;amp;&amp;amp; max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;lt; max('_FY25 CFG Performance OG'[FY 24Target]),&lt;BR /&gt;2,&lt;BR /&gt;//Worse than baseline and target&lt;BR /&gt;IF(&lt;BR /&gt;max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;lt; max('_FY25 CFG Performance OG'[Baseline] )&lt;BR /&gt;&amp;amp;&amp;amp; max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;lt; max('_FY25 CFG Performance OG'[FY 24Target]),&lt;BR /&gt;1,&lt;BR /&gt;//N/A this quarter&lt;BR /&gt;0&lt;BR /&gt;))))&lt;BR /&gt;&lt;BR /&gt;I’ve created conditional logic for &lt;STRONG&gt;&lt;EM&gt;Better than baseline AND target&lt;/EM&gt;, &lt;EM&gt;Better than baseline BUT NOT target&lt;/EM&gt;,&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;Worse than baseline and target&lt;/EM&gt;.&lt;/STRONG&gt; Now, I need to count the occurrences of each of these categories.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;I create below measure for&amp;nbsp;BetterThanBaseline&amp;amp;Target&amp;nbsp; and it return &lt;STRONG&gt;blank()&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;BetterThanBaseline&amp;amp;Target =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('_FY25 CFG Performance OG'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'_FY25 CFG Performance OG',&lt;BR /&gt;max( '_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= '_FY25 CFG Performance OG'[Baseline] &amp;amp;&amp;amp;&lt;BR /&gt;max( '_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= '_FY25 CFG Performance OG'[FY 24Target]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2024 03:02:51 GMT</pubDate>
    <dc:creator>redomer44</dc:creator>
    <dc:date>2024-11-03T03:02:51Z</dc:date>
    <item>
      <title>DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/4267861#M169215</link>
      <description>&lt;P&gt;CFQ1 =&lt;BR /&gt;//Better than baseline AND target&lt;BR /&gt;if(search("N/A",max('_FY25 CFG Performance OG'[as of 9/30/23]),1,0) &amp;lt;&amp;gt; 0 ,0,&lt;BR /&gt;IF(&lt;BR /&gt;max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= max('_FY25 CFG Performance OG'[Baseline] )&lt;BR /&gt;&amp;amp;&amp;amp; max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= max('_FY25 CFG Performance OG'[FY 24Target]),&lt;BR /&gt;3,&lt;BR /&gt;//Better than baseline BUT NOT target&lt;BR /&gt;IF(&lt;BR /&gt;max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= max('_FY25 CFG Performance OG'[Baseline])&lt;BR /&gt;&amp;amp;&amp;amp; max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;lt; max('_FY25 CFG Performance OG'[FY 24Target]),&lt;BR /&gt;2,&lt;BR /&gt;//Worse than baseline and target&lt;BR /&gt;IF(&lt;BR /&gt;max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;lt; max('_FY25 CFG Performance OG'[Baseline] )&lt;BR /&gt;&amp;amp;&amp;amp; max('_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;lt; max('_FY25 CFG Performance OG'[FY 24Target]),&lt;BR /&gt;1,&lt;BR /&gt;//N/A this quarter&lt;BR /&gt;0&lt;BR /&gt;))))&lt;BR /&gt;&lt;BR /&gt;I’ve created conditional logic for &lt;STRONG&gt;&lt;EM&gt;Better than baseline AND target&lt;/EM&gt;, &lt;EM&gt;Better than baseline BUT NOT target&lt;/EM&gt;,&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;Worse than baseline and target&lt;/EM&gt;.&lt;/STRONG&gt; Now, I need to count the occurrences of each of these categories.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;I create below measure for&amp;nbsp;BetterThanBaseline&amp;amp;Target&amp;nbsp; and it return &lt;STRONG&gt;blank()&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;BetterThanBaseline&amp;amp;Target =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('_FY25 CFG Performance OG'),&lt;BR /&gt;FILTER(&lt;BR /&gt;'_FY25 CFG Performance OG',&lt;BR /&gt;max( '_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= '_FY25 CFG Performance OG'[Baseline] &amp;amp;&amp;amp;&lt;BR /&gt;max( '_FY25 CFG Performance OG'[as of 9/30/23 - Copy]) &amp;gt;= '_FY25 CFG Performance OG'[FY 24Target]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 03:02:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/4267861#M169215</guid>
      <dc:creator>redomer44</dc:creator>
      <dc:date>2024-11-03T03:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/4267876#M169216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451116" data-lia-user-login="redomer44" class="lia-mention lia-mention-user"&gt;redomer44&lt;/a&gt;&amp;nbsp;-&amp;nbsp;CALCULATE with FILTER and COUNTROWS in the way you did won’t work as expected because CALCULATE does not interact well with MAX in the FILTER context like this. Instead, you should use a pattern that applies the logic directly in the measure without the FILTER function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;check the below measure for better than baseline AND target&lt;/P&gt;
&lt;P&gt;BetterThanBaselineAndTargetCount =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('_FY25 CFG Performance OG'),&lt;BR /&gt;'_FY25 CFG Performance OG'[as of 9/30/23 - Copy] &amp;gt;= '_FY25 CFG Performance OG'[Baseline],&lt;BR /&gt;'_FY25 CFG Performance OG'[as of 9/30/23 - Copy] &amp;gt;= '_FY25 CFG Performance OG'[FY 24Target]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;another measure for better than baseline BUT NOT target&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BetterThanBaselineNotTargetCount =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('_FY25 CFG Performance OG'),&lt;BR /&gt;'_FY25 CFG Performance OG'[as of 9/30/23 - Copy] &amp;gt;= '_FY25 CFG Performance OG'[Baseline],&lt;BR /&gt;'_FY25 CFG Performance OG'[as of 9/30/23 - Copy] &amp;lt; '_FY25 CFG Performance OG'[FY 24Target]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;worse than&amp;nbsp;baseline and target create another measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WorseThanBaselineAndTargetCount =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;COUNTROWS('_FY25 CFG Performance OG'),&lt;BR /&gt;'_FY25 CFG Performance OG'[as of 9/30/23 - Copy] &amp;lt; '_FY25 CFG Performance OG'[Baseline],&lt;BR /&gt;'_FY25 CFG Performance OG'[as of 9/30/23 - Copy] &amp;lt; '_FY25 CFG Performance OG'[FY 24Target]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;check the above logics.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 03:28:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/4267876#M169216</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-11-03T03:28:52Z</dc:date>
    </item>
  </channel>
</rss>

