<?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: Issue with count while converting reports from Cognos to power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255799#M20746</link>
    <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry . You did not understand my issue .&lt;/P&gt;&lt;P&gt;I already have written a similar expression in Power BI as shown below.&lt;/P&gt;&lt;P&gt;IF(NOT(ISBLANK(SELECTEDVALUE('Ross FNAD'[Award Paid Amt])))&amp;amp;&amp;amp; (SELECTEDVALUE('Ross FNAD'[Award Paid Amt])&amp;lt;&amp;gt;0),1)&lt;/P&gt;&lt;P&gt;Award Paid Amt is a table column and the above DAX is for a new Measure which i created and named it as "Paid Amt in Term".&lt;/P&gt;&lt;P&gt;Why i wrote 1 because i am using this Paid Amount in Term and summing up or counting in next calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i am creating a below calculation for getting Y. I am getting more Y's than expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term]),'Ross FNAD'[PIDM],'Ross FNAD'[Term Code])&amp;gt;=2,"Y")&lt;/P&gt;&lt;P&gt;or&lt;BR /&gt;if(COUNTAX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2 &amp;amp;&amp;amp; CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2),"Y")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI&amp;nbsp;&lt;SPAN&gt;Total Term and AY Paid Amt is a Cognos Col and not there in Power BI&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 12:25:36 GMT</pubDate>
    <dc:creator>mschandra28</dc:creator>
    <dc:date>2020-07-28T12:25:36Z</dc:date>
    <item>
      <title>Issue with count while converting reports from Cognos to power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1254848#M20719</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue while converting a Cognos Report to Power BI report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has Paid Amount in Term and AY: this is my Cognos statement&lt;BR /&gt;===============================&lt;BR /&gt;CASE&lt;BR /&gt;WHEN [Total Term and AY Paid Amt] is not null&lt;BR /&gt;AND [Total Term and AY Paid Amt] &amp;lt;&amp;gt; 0&lt;BR /&gt;THEN 'Y'&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PowerBI: i am writing in Power BI&lt;BR /&gt;========&lt;BR /&gt;IF(NOT(ISBLANK(SELECTEDVALUE('Ross FNAD'[Award Paid Amt])))&amp;amp;&amp;amp; (SELECTEDVALUE('Ross FNAD'[Award Paid Amt])&amp;lt;&amp;gt;0),1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has Paid Amount in Multiple AYs(This is report col) This is Cognos&lt;BR /&gt;============================================&lt;BR /&gt;CASE&lt;BR /&gt;WHEN count([Has Paid Amount in Term and AY] for&lt;BR /&gt;[Student Performance BV].[Applicant Award Schedule].[Applicant Award Schedule PIDM],&lt;BR /&gt;[Student Performance BV].[Applicant Award Schedule].[Applicant Award Schedule Period]) &amp;gt;= 2&lt;BR /&gt;THEN 'Y'&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;Power BI: I am writing like this in Power Bi but i am getting fews rows as Y where as in Cognos its not Y for those.&amp;nbsp; there is some thing wrong with this expression below i feel&lt;BR /&gt;========&lt;/P&gt;&lt;P&gt;if(CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term]),'Ross FNAD'[PIDM],'Ross FNAD'[Term Code])&amp;gt;=2,"Y")&lt;/P&gt;&lt;P&gt;or&lt;BR /&gt;if(COUNTAX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2 &amp;amp;&amp;amp; CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2),"Y")&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 08:06:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1254848#M20719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T08:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with count while converting reports from Cognos to power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255722#M20739</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if you can have a new column. you can have like this &lt;/P&gt;
&lt;P&gt;new column =if( not(isblank([Total Term and AY Paid Amt])) &amp;amp;&amp;amp; [Total Term and AY Paid Amt] &amp;lt;&amp;gt; 0 , "Y")&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 11:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255722#M20739</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-28T11:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with count while converting reports from Cognos to power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255793#M20744</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&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;&lt;SPAN&gt;WHEN [Total Term and AY Paid Amt] is not null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND [Total Term and AY Paid Amt] &amp;lt;&amp;gt; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;THEN 'Y'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;END&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are creating a Column&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Column = IF('Ross FNAD'[Award Paid Amt] &amp;lt;&amp;gt; Blank() &amp;amp;&amp;amp; 'Ross FNAD'[Award Paid Amt]&amp;lt;&amp;gt;0 , "Y")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If a measure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure =&amp;nbsp; IF(MAX('Ross FNAD'[Award Paid Amt]) &amp;lt;&amp;gt; Blank() &amp;amp;&amp;amp; MAX('Ross FNAD'[Award Paid Amt])&amp;lt;&amp;gt;0 , "Y")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the second one you can try, thogh not very clear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure =&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;'Ross&amp;nbsp;FNAD',&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;[Paid&amp;nbsp;Amt&amp;nbsp;in&amp;nbsp;Term]&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;gt;=&amp;nbsp;&lt;SPAN class="Number"&gt;2&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="StringLiteral"&gt;"Y"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Harsh Nathani&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:23:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255793#M20744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with count while converting reports from Cognos to power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255799#M20746</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry . You did not understand my issue .&lt;/P&gt;&lt;P&gt;I already have written a similar expression in Power BI as shown below.&lt;/P&gt;&lt;P&gt;IF(NOT(ISBLANK(SELECTEDVALUE('Ross FNAD'[Award Paid Amt])))&amp;amp;&amp;amp; (SELECTEDVALUE('Ross FNAD'[Award Paid Amt])&amp;lt;&amp;gt;0),1)&lt;/P&gt;&lt;P&gt;Award Paid Amt is a table column and the above DAX is for a new Measure which i created and named it as "Paid Amt in Term".&lt;/P&gt;&lt;P&gt;Why i wrote 1 because i am using this Paid Amount in Term and summing up or counting in next calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i am creating a below calculation for getting Y. I am getting more Y's than expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term]),'Ross FNAD'[PIDM],'Ross FNAD'[Term Code])&amp;gt;=2,"Y")&lt;/P&gt;&lt;P&gt;or&lt;BR /&gt;if(COUNTAX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2 &amp;amp;&amp;amp; CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2),"Y")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI&amp;nbsp;&lt;SPAN&gt;Total Term and AY Paid Amt is a Cognos Col and not there in Power BI&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255799#M20746</guid>
      <dc:creator>mschandra28</dc:creator>
      <dc:date>2020-07-28T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with count while converting reports from Cognos to power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255816#M20747</link>
      <description>&lt;P&gt;Hi Harsha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already used or wrote the same calculation as shown below. I am getting more "Y" 's than expected.&lt;/P&gt;&lt;P&gt;For some reason i am getting more Y's&lt;/P&gt;&lt;P&gt;if(COUNTAX('Ross FNAD',[Paid Amt in Term])&amp;gt;=2),"Y")&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;if(CALCULATE(SUMX('Ross FNAD',[Paid Amt in Term]),'Ross FNAD'[PIDM],'Ross FNAD'[Term Code])&amp;gt;=2,"Y")&lt;/P&gt;&lt;P&gt;Both the above DAX&amp;nbsp; are giving me the same result set.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 12:31:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-count-while-converting-reports-from-Cognos-to-power/m-p/1255816#M20747</guid>
      <dc:creator>mschandra28</dc:creator>
      <dc:date>2020-07-28T12:31:34Z</dc:date>
    </item>
  </channel>
</rss>

