<?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: Divide count distinct column by non calculated column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1621574#M32719</link>
    <description>&lt;P&gt;This worked Perfect. Thanks soo much&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 16:43:36 GMT</pubDate>
    <dc:creator>oriabbhou1</dc:creator>
    <dc:date>2021-01-25T16:43:36Z</dc:date>
    <item>
      <title>Divide count distinct column by non calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618004#M32634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing a quick measure to divide 2 columns without doing any calculation on the denominator column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here's the scenario: The numerator column(lesson count) does a count of lessons and i have a criteria for each school. I entered the criteria(required lesson) by creating a table in powerbi and joining by school in the relationships tab. The issue is that when i try to divide lesson count(i did a count distinct on this column which is what i wanted) by required lesson, it forces me want to use some form of aggregation(sum, count, standard deviation, etc) to the required lesson column which is not want i want. I just want to divide lesson count/required lesson without the aggregation to the denominator. Is there a dax that does this perfectly? I've looked at some post but the answers i see is not working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 06:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618004#M32634</guid>
      <dc:creator>oriabbhou1</dc:creator>
      <dc:date>2021-01-23T06:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Divide count distinct column by non calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618009#M32635</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254439" data-lia-user-login="oriabbhou1" class="lia-mention lia-mention-user"&gt;oriabbhou1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'd Suggest you to create a Calculated column for your solution&lt;BR /&gt;&lt;BR /&gt;column=divide(table[LessonCount],table[RequiredLesson],0)&lt;BR /&gt;&lt;BR /&gt;if you dont want to use above solution can you please share some sample data&lt;BR /&gt;&lt;BR /&gt;Did I answer your question? If Yes, Please mark this as a solution&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Jay Patel&lt;BR /&gt;iXpert Analytics&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 07:12:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618009#M32635</guid>
      <dc:creator>iXpert_info</dc:creator>
      <dc:date>2021-01-23T07:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Divide count distinct column by non calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618034#M32637</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254439" data-lia-user-login="oriabbhou1" class="lia-mention lia-mention-user"&gt;oriabbhou1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you share a sample of the data you're working with and your desired results, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Karlos.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 08:28:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618034#M32637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-23T08:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Divide count distinct column by non calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618539#M32644</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281404" data-lia-user-login="iXpert_info" class="lia-mention lia-mention-user"&gt;iXpert_info&lt;/a&gt;&amp;nbsp;&amp;amp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating a calulated column but the required lessons column from the lessons required table is not popping up as the denominator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both columns are whole numbers so i dont see why it shouldnt work. I'm pretty much trying to accomplish the &lt;STRONG&gt;% completion&lt;/STRONG&gt;&amp;nbsp;colum in the sample data below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my sample data below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 00:13:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618539#M32644</guid>
      <dc:creator>oriabbhou1</dc:creator>
      <dc:date>2021-01-24T00:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Divide count distinct column by non calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618895#M32656</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254439" data-lia-user-login="oriabbhou1" class="lia-mention lia-mention-user"&gt;oriabbhou1&lt;/a&gt;&amp;nbsp;try the following&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% Completion = DIVIDE('Lessons(SQL Table)'[Count of Lesson],RELATED('Lesson Required Table'[Lesson Required]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've added a PBIX file to this one drive link that shows how I achieved it for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AnIEh6WhI4Jog4ginCxsERXWt36plg?e=DX9UAm" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!AnIEh6WhI4Jog4ginCxsERXWt36plg?e=DX9UAm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 14:38:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1618895#M32656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-24T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Divide count distinct column by non calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1621574#M32719</link>
      <description>&lt;P&gt;This worked Perfect. Thanks soo much&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 16:43:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-count-distinct-column-by-non-calculated-column/m-p/1621574#M32719</guid>
      <dc:creator>oriabbhou1</dc:creator>
      <dc:date>2021-01-25T16:43:36Z</dc:date>
    </item>
  </channel>
</rss>

