<?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 Rows based on  dynamic column value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1912058#M41335</link>
    <description>&lt;P&gt;When you say the model, are you referring to the underlying data?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jun 2021 10:54:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-21T10:54:12Z</dc:date>
    <item>
      <title>Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1908985#M41242</link>
      <description>&lt;P&gt;Hi, I have a stacked bar chart with a line graph on and as a tooltip, I want to show the percentage value of each stack. I've tried various solutions, but to no avail. For example, for 2019, when I hover over the bottom stack, I want the tooltip to tell me that it represents XX% of uploads for non-partners that year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the solution below, but the latter part of the argument returns the total number of rows within the table, not the amount for each year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Percentage = DISTINCTCOUNT('Overview'[First_NID])/CALCULATE(DISTINCTCOUNT(Overview[First_NID]),ALLEXCEPT(Overview,Overview[First_Year]))&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 12:24:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1908985#M41242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-18T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1910077#M41289</link>
      <description>&lt;P&gt;Show the model.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 18:54:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1910077#M41289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-19T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1912058#M41335</link>
      <description>&lt;P&gt;When you say the model, are you referring to the underlying data?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 10:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1912058#M41335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-21T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1916801#M41507</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , try a measure like&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Percentage = divide(DISTINCTCOUNT('Overview'[First_NID]),CALCULATE(DISTINCTCOUNT(Overview[First_NID]),filter(allselected(Overview),Overview[First_Year]) =max(Overview[First_Year])))&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 07:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1916801#M41507</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-06-23T07:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1919802#M41609</link>
      <description>&lt;P&gt;Thanks, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;! However, it's still not working. I receive the following error message - A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 10:41:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1919802#M41609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-24T10:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1919967#M41617</link>
      <description>&lt;P&gt;No, I'm referring to the schema.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 12:13:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1919967#M41617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-24T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1919971#M41618</link>
      <description>&lt;P&gt;I smell a rat here... The rat being a &lt;STRONG&gt;single-table model&lt;/STRONG&gt;. Do you happen to have a model with just one big table?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 12:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1919971#M41618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-24T12:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1922786#M41684</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it's using the two tables I've highlighted.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1922786#M41684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1922789#M41685</link>
      <description>&lt;P&gt;It's quite large, but the attached screenshot shows the two tables I'm using. &lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:07:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1922789#M41685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T14:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Rows based on  dynamic column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1923075#M41689</link>
      <description>&lt;P&gt;OK, I can tell you straight away you should change the way you model your data. It would take a small book to explain to you why the model is bad. But the fact is: it's very bad. I mean &lt;STRONG&gt;VERY&lt;/STRONG&gt;. And I'm not talking about the tables. I'm talking about the relationships. Bi-dir relationships have been thought to solve some very specific issues. Namely, those with many to many relationships that require a bridge table. Nothing else. Second, the *-* (many-to-many) relationships have been designed to solve the issue of granularity and bi-dir filtering should never be enabled on them. If you leave the model as it is right now, very soon---or even now but without being aware---your model will start producting figures nobody will be able to explain and understand. Including you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'm almost sure this model is ambiguous but the engine does not signalize it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do not make the mistakes other have. Change the model according to Best Practices of PBI modeling and dimensional modeling. This advice is all I can do for you right now. Ignore it and you'll be in for troubles later on BIG TIME.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 17:16:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Rows-based-on-dynamic-column-value/m-p/1923075#M41689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T17:16:32Z</dc:date>
    </item>
  </channel>
</rss>

