<?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: Count Of Values in New Measure Field from Two Tables in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/788455#M2529</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, DAX is out of my expertise, at least for a while.&lt;/P&gt;&lt;P&gt;However, you could ask in more suitable threads as &lt;A href="https://community.powerbi.com/t5/Desktop/bd-p/power-bi-designer" target="_self"&gt;that one&lt;/A&gt; and &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/bd-p/DAXCommands" target="_self"&gt;another one&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 15:12:06 GMT</pubDate>
    <dc:creator>v-evelk</dc:creator>
    <dc:date>2019-09-10T15:12:06Z</dc:date>
    <item>
      <title>Count Of Values in New Measure Field from Two Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/786772#M2518</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I need to create a New Measure filed to list count of No error Projects with Monthly basis.&lt;BR /&gt;I am having two Table, 1. Version Table 2. QC Error Table.&lt;BR /&gt;Schema for Version Table is:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; [Id]&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; ,[Project Name]&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; ,[Project_ID]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,[Version]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,[Type]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,[Active]&lt;BR /&gt;&lt;BR /&gt;and Schema for QC error Table is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; [ID]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ,[Staff]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ,[Project_ID]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,[Version_ID]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ,[Type Of Error]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for getting the above , I Used following SQL query and created a New views in SQL DB.&lt;/P&gt;&lt;PRE&gt;SELECT        V.[Project Name], COUNT(Q.Project) AS [Count of Version ID], V.[Project ID at SMA], V.[Final Completion Date] V.Id AS [Version ID]
FROM            dbo.[QC Errors] AS Q RIGHT OUTER JOIN
                         dbo.[Version Table] AS V ON Q.Version = V.Id AND Q.[Type Of Error] = N'Error, Customer Reported'
GROUP BY V.[Project Name], V.[Project ID at SMA], V.[Final Completion Date]&lt;/PRE&gt;&lt;P&gt;i&amp;nbsp; got the query of Output as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project ID &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;Count of Version ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Project1 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 25&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Project2 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Project3 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Project4 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its shows the all Project with count of versionID available in QC error Table, If Version ID is Not available it shows the ZERO Value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to get only the zero Error Projects from this View (i need the project name which are having no error) in Power BI.&lt;/P&gt;&lt;P&gt;then i import this view to Power BI and i filter the value with Monthly Basis (Using&amp;nbsp;&lt;SPAN&gt;Final Completion Date&lt;/SPAN&gt; filed ) and error count = 0&lt;/P&gt;&lt;P&gt;but i am getting same value in all rows.&lt;/P&gt;&lt;P&gt;Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count of No error project.&lt;/P&gt;&lt;P&gt;Jan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 433&lt;/P&gt;&lt;P&gt;feb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 433&lt;/P&gt;&lt;P&gt;Mar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 433 .....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can any one help me to resolve this issue.&lt;BR /&gt;Thanks&lt;BR /&gt;TalhaTJ&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 07:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/786772#M2518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T07:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Of Values in New Measure Field from Two Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/787866#M2523</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;anyone having idea to resolve the above issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried this in PowerBI New Table command.&lt;/P&gt;&lt;PRE&gt;Table 2 = GENERATEALL(SUMMARIZE('Version Table','Version Table'[Project ID at SMA],'Version Table'[Id]),SUMMARIZE('QC Errors','QC Errors'[Version],"TestColumn",COUNTX('QC Errors',Value('QC Errors'[Version]) = 'Version Table'[Id])))&lt;/PRE&gt;&lt;P&gt;But i am getting following error in expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI.PNG" style="width: 460px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/191132i32EE9A490C5FFEA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBI.PNG" alt="PowerBI.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;can anybody help me to resolve this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 06:19:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/787866#M2523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T06:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Of Values in New Measure Field from Two Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/788455#M2529</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, DAX is out of my expertise, at least for a while.&lt;/P&gt;&lt;P&gt;However, you could ask in more suitable threads as &lt;A href="https://community.powerbi.com/t5/Desktop/bd-p/power-bi-designer" target="_self"&gt;that one&lt;/A&gt; and &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/bd-p/DAXCommands" target="_self"&gt;another one&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 15:12:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Count-Of-Values-in-New-Measure-Field-from-Two-Tables/m-p/788455#M2529</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-09-10T15:12:06Z</dc:date>
    </item>
  </channel>
</rss>

