<?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: How to count number of rows for entries which are not related? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1898570#M29964</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/306981"&gt;@manojgour&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you please validate that is there any record exist in table &lt;STRONG&gt;Slot&lt;/STRONG&gt; when&amp;nbsp;&lt;SPAN&gt;appointment is '&lt;STRONG&gt;Cancelled&lt;/STRONG&gt;', same slotid with the one in table &lt;STRONG&gt;Appointment&lt;/STRONG&gt; and 'Appointment'[Appointment date] &lt;STRONG&gt;equal&lt;/STRONG&gt; 'Slot'[Slot Date]? Besides that, please check whether the data type of 'Appointment'[Appointment date] and 'Slot'[Slot Date] are same or not? Could you please provide some sample data(exclude sensitive data) in order to make troubleshooting? It is &lt;STRONG&gt;better&lt;/STRONG&gt; if you can provide your sample pbix file(please clear sensitive data). Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On the other hand, please review the content in the following links. Hope they can help you resolve the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Cannot-create-multiples-column-relationship-between-two-tables/m-p/48261" target="_self"&gt;&lt;STRONG&gt;Cannot create multiples column relationship between two tables&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.tips/2017/07/use-multiple-connections-between-tables/" target="_self"&gt;&lt;STRONG&gt;Use Multiple Connections Between Tables&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 10:04:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-14T10:04:19Z</dc:date>
    <item>
      <title>How to count number of rows for entries which are not related?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1896596#M29934</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to count rows from table&amp;nbsp; name - 'Appointment' which was 'Cancelled' on a given Slot. Once appointment is cancelled that entry is deleted from table - 'Slot'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship between two tables:&lt;/P&gt;&lt;P&gt;Appointment[PK-appointmentId, FK-slotId] -&amp;gt; Slot[PK-slotId]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Active relationship shown in below screenshot-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manojgour_0-1623440726060.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532493i7F99D01DEA1F3DBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manojgour_0-1623440726060.png" alt="manojgour_0-1623440726060.png" /&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;Below screenshot is the detail from table when an appointment is 'Cancelled' and how msemr_primaryslot(FK) in Appointment table is null&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manojgour_1-1623440726062.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/532494i516AA1A636D7CC6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manojgour_1-1623440726062.png" alt="manojgour_1-1623440726062.png" /&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;Report has a 'Date Slicer' using Slot[Slot date] and when we choose date from slicer, measure wouldn't be able to navigate to count rows with Cancelled Status from Appointment[table]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using function USERELATIONSHIP with inactive relationship on 'Appointment'[Appointment date] -&amp;gt; 'Slot'[Slot Date] but it would return empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS - I have to use Slot [Slot date] for date slicer for other visuals and measurements to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 19:49:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1896596#M29934</guid>
      <dc:creator>manojgour</dc:creator>
      <dc:date>2021-06-11T19:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of rows for entries which are not related?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1898570#M29964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/306981"&gt;@manojgour&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you please validate that is there any record exist in table &lt;STRONG&gt;Slot&lt;/STRONG&gt; when&amp;nbsp;&lt;SPAN&gt;appointment is '&lt;STRONG&gt;Cancelled&lt;/STRONG&gt;', same slotid with the one in table &lt;STRONG&gt;Appointment&lt;/STRONG&gt; and 'Appointment'[Appointment date] &lt;STRONG&gt;equal&lt;/STRONG&gt; 'Slot'[Slot Date]? Besides that, please check whether the data type of 'Appointment'[Appointment date] and 'Slot'[Slot Date] are same or not? Could you please provide some sample data(exclude sensitive data) in order to make troubleshooting? It is &lt;STRONG&gt;better&lt;/STRONG&gt; if you can provide your sample pbix file(please clear sensitive data). Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On the other hand, please review the content in the following links. Hope they can help you resolve the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Cannot-create-multiples-column-relationship-between-two-tables/m-p/48261" target="_self"&gt;&lt;STRONG&gt;Cannot create multiples column relationship between two tables&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.tips/2017/07/use-multiple-connections-between-tables/" target="_self"&gt;&lt;STRONG&gt;Use Multiple Connections Between Tables&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:04:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1898570#M29964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-14T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to count number of rows for entries which are not related?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1899608#M29975</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to resolve this problem with changes in Data modeling and using USERELATIONSHIP dax function.&lt;BR /&gt;This time I changed relationship to inactive between Slot and Appointment tables whereas now both the tables relationship with Calendar table was made active to achieve other measures to work in report as usual.&lt;BR /&gt;Cancelled count calculation measure started to drive from Slot[date]-&amp;gt;Calendar[date]-&amp;gt;Appointment[date] route and my other matrix calculation for other appointment status made use of dax function -&lt;/P&gt;&lt;P&gt;USERELATIONSHIP('Appointment'[FK_slotid], Slot[PK_slotid]) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manojgour_0-1623694095872.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/533418iCE96547E4C072B42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="manojgour_0-1623694095872.png" alt="manojgour_0-1623694095872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 18:10:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-count-number-of-rows-for-entries-which-are-not-related/m-p/1899608#M29975</guid>
      <dc:creator>manojgour</dc:creator>
      <dc:date>2021-06-14T18:10:18Z</dc:date>
    </item>
  </channel>
</rss>

