<?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 IF AND formula between measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-AND-formula-between-measures/m-p/1973764#M43406</link>
    <description>&lt;P&gt;Hi, my skills at DAX if statements are proving atrocious so any help is much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that simply calculates if the count of referral leads is &amp;gt; 0 and the count of activities relating to that referral is blank, to then mark true or false (the idea being to eventually highlight leads that have had no activity).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula i have written seems to kind of work but it is still marking a zero against accounts with no activities against them. Any idea what ive done wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;No Activity Check = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; C4C_Referral_Leads,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IF(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; DISTINCTCOUNT( C4C_Referral_Leads[Lead ID] ) &amp;gt; 0 &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; DISTINCTCOUNT( MergedActivities[Activity ID] ) = BLANK(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; 1,0))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 15:54:58 GMT</pubDate>
    <dc:creator>adam_mac</dc:creator>
    <dc:date>2021-07-22T15:54:58Z</dc:date>
    <item>
      <title>DAX IF AND formula between measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-AND-formula-between-measures/m-p/1973764#M43406</link>
      <description>&lt;P&gt;Hi, my skills at DAX if statements are proving atrocious so any help is much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a measure that simply calculates if the count of referral leads is &amp;gt; 0 and the count of activities relating to that referral is blank, to then mark true or false (the idea being to eventually highlight leads that have had no activity).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula i have written seems to kind of work but it is still marking a zero against accounts with no activities against them. Any idea what ive done wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;No Activity Check = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; C4C_Referral_Leads,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IF(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; DISTINCTCOUNT( C4C_Referral_Leads[Lead ID] ) &amp;gt; 0 &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; DISTINCTCOUNT( MergedActivities[Activity ID] ) = BLANK(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; 1,0))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 15:54:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-AND-formula-between-measures/m-p/1973764#M43406</guid>
      <dc:creator>adam_mac</dc:creator>
      <dc:date>2021-07-22T15:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX IF AND formula between measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-AND-formula-between-measures/m-p/1973807#M43412</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;[No Activity Check] = 
if(
	NOT( ISEMPTY( C4C_Referral_leads) )
	&amp;amp;&amp;amp;
	ISEMPTY( MergedActivities ),
	1
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 16:25:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-AND-formula-between-measures/m-p/1973807#M43412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-22T16:25:49Z</dc:date>
    </item>
  </channel>
</rss>

