<?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: DAX Measure giving error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3249140#M119828</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;IF (&lt;BR /&gt;MAX ( 'Change Requests'[Type] ) = "Charted",&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'Change Requests'[Calendar Days] ),&lt;BR /&gt;IF ( 'Change Requests'[Calendar Days] &amp;gt;= [LeadDays], [vCountofChanges], 0 )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 07:19:34 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-05-23T07:19:34Z</dc:date>
    <item>
      <title>DAX Measure giving error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3248941#M119808</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am trying to replicate one formula from Business Objects to Power BI DAX which reads as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If ([Type] = "Charted") Then (If IsNull([vCountofChanges] Where([Calendar Days] &amp;gt;= [LeadDays])) Then 0&lt;BR /&gt;Else [vCountofChanges] Where([Calendar Days] &amp;gt;= [LeadDays]))&lt;BR /&gt;Else (If IsNull([vCountAllChanges] Where([Calendar Days] &amp;gt;= [LeadDays])) Then 0&lt;BR /&gt;Else [vCountofChanges] Where([Calendar Days] &amp;gt;= [LeadDays]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only create a measure DAX to replicate above formula . I wrote the following DAX measure but it is giving me an errror. Can someone please correct my DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(MAX('Change Requests'[Type]="Charted"),IF(ISBLANK(CALCULATE([vCountofChanges],&lt;BR /&gt;FILTER('Change Requests','Change Requests'[Calendar Days]&amp;gt;=[LeadDays]),0,CALCULATE([vCountofChanges],FILTER('Change Requests','Change Requests'[Calendar Days]&amp;gt;=[LeadDays]))))))&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 04:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3248941#M119808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-23T04:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure giving error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3248949#M119809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=
IF (
    MAX ( 'Change Requests'[Type] ) = "Charted",
    COALESCE (
        ISBLANK (
            CALCULATE (
                [vCountofChanges],
                FILTER ( 'Change Requests', 'Change Requests'[Calendar Days] &amp;gt;= [LeadDays] )
            )
        ),
        0
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:06:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3248949#M119809</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-23T05:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure giving error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3248982#M119814</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;I used the DAX given by you and named it Test 2. However, its not giving me any values. Ideally, it should give me the total as 2 because there are overall 2 instances where 'Calendar days' are greater than or equal to 'LeadDays'.&lt;/P&gt;&lt;P&gt;Please refer to below snapshot for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3248982#M119814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-23T05:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure giving error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3249140#M119828</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;=&lt;BR /&gt;IF (&lt;BR /&gt;MAX ( 'Change Requests'[Type] ) = "Charted",&lt;BR /&gt;SUMX (&lt;BR /&gt;VALUES ( 'Change Requests'[Calendar Days] ),&lt;BR /&gt;IF ( 'Change Requests'[Calendar Days] &amp;gt;= [LeadDays], [vCountofChanges], 0 )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3249140#M119828</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-23T07:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure giving error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3249153#M119831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It worked perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks a lot for your help&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:27:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-giving-error/m-p/3249153#M119831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-23T07:27:29Z</dc:date>
    </item>
  </channel>
</rss>

